Beau Bellamy
Beau Bellamy

Reputation: 481

automating tortoise SVN

I want to automate the checkout of a working copy of an existing repository to a desired location. I am using Tortoise SVN on windows 7 and i will not be able to use any other forms of SVN as http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html suggests, as i have not admin rights and the whole department is using Tortoise SVN. I know i can use commands to open the GUI's but is it possible to interact with these GUI's or even better create a command that doesn't necessarily require the GUI's

TortoiseProc.exe/command:checkout /url:[source] /path:[destination] - opens the chekout GUI, how can i "press" OK from the command line?

Upvotes: 1

Views: 2896

Answers (3)

Arindam Roychowdhury
Arindam Roychowdhury

Reputation: 6493

I think one needs to know these commands that will help automating anything related to svn. I used svn extensively while creating automation frameworks .

Visit this link to get the full idea

http://thebongtraveller.blogspot.com/2016/01/svn-commands-you-must-know-test.html

Upvotes: 0

splash
splash

Reputation: 13327

Here you can download the Subversion Command line tools for Windows:

http://sourceforge.net/projects/win32svn/files/

Choose a zip package, so you should be able to install/extract it without admin rights.

svn checkout is documented here or via svn help checkout on the command line.

Upvotes: 0

Lazy Badger
Lazy Badger

Reputation: 97280

is it possible to interact with these GUI's or even better create a command that doesn't necessarily require the GUI's

From "Automating TortoiseSVN" page

Remember that TortoiseSVN is a GUI client, and this automation guide shows you how 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.

So answer is: "Use SVN CLI, which is part of TortoiseSVN installation in TSVN 1.7" and checkout using

svn co URL PATH

Upvotes: 1

Related Questions