取消
显示结果 
搜索替代 
您的意思是: 

programmatically copying a file from Tortoise SVN

已解决!
转到解答

I have a file in a repository that I normally access via the shell extension for tortoise svn, I usually right-click and select SVN Checkout.

 

I want to program LabVIEW to copy a file to my PC.

 

e.g. source path is svn://myserver/myrepo/trunk/Config/ConfigFile.ini

 

copy to C:\Temp

 

Note that I'm not asking about source control of my labview code or anything to do with source code control.  I just want to a copy a file from A to B.

0 项奖励
1 条消息(共 6 条)
3,133 次查看

Hi bmann,

 

are you looking for this?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 6 条)
3,108 次查看

@GerdW wrote:

Hi bmann,

 

are you looking for this?


Having followed @GerdW's suggestion for you 😉 I found this function.

Based on my (limited) usage of Tortoise SVN, I would expect it to work for you. (In my case, I was able to access the server via File Explorer, too, so I would assume this will work.)

 

I would try this function first. If it doesn't work, report back on what happened (and attach a snippet of your VI showing what you've tried).

-joeorbob

0 项奖励
3 条消息(共 6 条)
3,073 次查看
解答
已被主题作者 bmann2000 接受

You want to use the svn export command with System Exec:

 

svn export [path to target] [path to new directory]

 

i.e.,

 

svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini c:/config_files

 

Note the target needs to be the directory in which you want the file, not the new name of the file.

 

https://stackoverflow.com/questions/3631465/how-to-use-svn-export-command-to-get-a-single-file-from-...

4 条消息(共 6 条)
3,071 次查看

Many thanks, LabVIEW can do it using System Exec.vi.

 

First you need to re-install SVN Tortoise and select the option to include command line tools.

 

Then you need to create the target directory for your file, as the command line will not create it for you.

The line below worked from command window and then just the same from System Exec.vi.

 

svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini C:\FolderIcreated\Main.ini

0 项奖励
5 条消息(共 6 条)
3,011 次查看

svn export svn://myserver/myrepo/trunk/Config/ConfigFile.ini C:\FolderIcreated\ConfigFile.ini

0 项奖励
6 条消息(共 6 条)
2,934 次查看