Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN: moving files from inside the folder

How to move all files (including .htaccess etc.) using svn move https://example.com/repos/123/* https://example.com/repos/?

It says "svn: Path https://example.com/repos/123/* does not exist in revision NN"

like image 360
Azat Avatar asked Jan 27 '11 16:01

Azat


People also ask

How do I diff files in svn?

Just hold down the Shift key while you right click on the file. Then select TortoiseSVN → Diff with URL. In the following dialog, specify the URL in the repository with which you want to compare your local file to.

Does svn move preserve history?

If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.

How do you svn checkout a folder?

So we right-click on this folder and select 'SVN Checkout…' From here we'll specify the location of the repository that we want to check our files out from. So something like… If you've forgotten what this URL is then you can go back to the VisualSVN server app and right click to select 'Copy URL to Clipboard'.


1 Answers

svn move does not support wild cards. In the SVN redbook they state that this command can "Move and schedule a file or directory":

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.move.html

You therefore have to call svn move for each file in the directory.

I suggest you to write a short script that does this for you or try to use one of the Subversion GUI tools.

like image 155
Robert Avatar answered Oct 03 '22 06:10

Robert