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)

  • Cannot install R-forge package using install.packages
  • Subversion commit failed Merge of file: 200 OK
  • SVN Ant Update example
  • How to clone a nonstandard svn repo to git?
  • svn: local commits
  • SVN Switch with relocate in Eclipse
  • 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?

  • A version control system with minimum space requirements on the client side, and is good with binaries
  • Unable to install Git-core+svn by MacPorts
  • Is there a metadata exclusion filter for the SVN DIFF command?
  • SVN Rights Management Tool using Windows Authentication method
  • Checkout a specific revision from Subversion from the command line
  • Attributing a single commit to multiple developers
  • One Solution collect form web for “svn copy -r”

    I think what you want is:

    svn copy url/to/repo/foldername@925 htdocs/foldername

    From svn help copy:

    usage: copy SRC[@REV]... DST

    See Peg and Operative Revisions.

    Using -r REV without @REV means “the ancestor (revision REV) of the current file” while @REV without -r rev means “the file at REV”. This semantic difference is significant because svn tracks copies (and renames).

    Git Baby is a git and github fan, let's start git clone.