user258427
user258427

Reputation: 151

Subversion command scripts

i have this command "TortoiseProc.exe" /command:update /path:"D:\Work_SVN\projectname"/notempfile

to update working copy.

I also have 'svn st -u' to check for modifications from repository. How to use this command in above syntax.

Bibhu

Upvotes: 1

Views: 510

Answers (3)

Kornel Kisielewicz
Kornel Kisielewicz

Reputation: 57615

Read the manual!

In general, you cannot just execute the status command of SVN with TortoiseProc. However, you can open the repostatus window using /command:repostatus.

(here follows a rephrase from the Manual)

Remember that TortoiseSVN is a GUI client, and this TortoiseProc allows you to make the TortoiseSVN dialogs appear to collect user input. If you want to write a script which requires no input, you should use the official Subversion command line client instead.

(rephrase from the Manual ends here... geesh)

Upvotes: 1

Álvaro González
Álvaro González

Reputation: 146563

You use the update subcommand:

svn update "D:\Work_SVN\projectname"

Type svn help update to see all its options and svn help to learn about all subcommands. See also the svn update chapter in the Version Control with Subversion book.

Upvotes: 0

Michael Hackner
Michael Hackner

Reputation: 8645

Use the command line client for scripting, not a GUI. You wouldn't script copying files from one directory to another by simulating the mouse clicking and dragging, would you?

Upvotes: 0

Related Questions