Monday, April 11, 2011

Why is my SVN command line checkout giving different file/folder permissions than TortoiseSVN?

When I checkout my SVN repository using the command line

TortoiseProc /command:checkout /path:"C:/Sandbox/SPB" /url:"https://svn.digipen.edu/users/sbentley" /closeonend:3

I can access all the files within it just fine. However, this prompts me for the checkout, which I don't want. Per the manual page on automation:

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.

However, when I checkout my repository via

svn co https://svn.digipen.edu/users/sbentley c:/sandbox/SPB

and try to run any executable, I get the error

Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

From stackoverflow
  • Just to see if it makes a difference... try running the command prompt as Administrator and see if you get a different result.

    Also try c:\sandbox\SPB (\ instead of /). I'm not at my windows box to see if the / -vs- \ does anything odd.

    OK. what if you just run "svn" with no arguments?

    Stuart P. Bentley : Changing the slashes doesn't do anything. I can't run the command prompt as an Administrator because I'm not an Administrator.
    Stuart P. Bentley : What if I just run svn with no arguments? Um... it tells me it has insufficient arguments and tells me the argument for help?

0 comments:

Post a Comment