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?

  • Synchronize an SVN repo (svnsync) with encoding errors
  • Search in SVN repository for a file name
  • Xcode source control view history modified files fail
  • Syncing website files between local and live servers using GIT?
  • Team Git Workflow Setup
  • SVN: Way to determine revision by comparing file or file content
  • Git SVN Is Unable to Fetch from SVN Repository
  • From svn to git, with a moved trunk
  • 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.