svn copy -r
So, I’ve done this before and I just can’t seem to figure out what’s broken this time…
I’m trying to restore a file from SVN. I went and found the revision where it was deleted (or at least last existed. I verified by using svn list -r)
Here is my command:
svn copy -r 925 url/to/repo/foldername htdocs/foldername
I keep getting an error:
svn: '/!svn/bc/973/.../htdocs/templates' path not found
From my understanding that means its looking in revision 973 (which is HEAD) instead of 925.
What am I missing here?
One Solution collect form web for “svn copy -r”
I think what you want is:
svn copy url/to/repo/foldername@925 htdocs/foldername
svn help copy:
usage: copy SRC[@REV]... DST
See Peg and Operative Revisions.
-r REV without @REV means “the ancestor (revision REV) of the current file” while
-r rev means “the file at REV”. This semantic difference is significant because svn tracks copies (and renames).