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)

  • Xcode 4 + SVN = working?
  • What are the advantages of using SVN over CVS?
  • Location information has been specified incorrectly in Eclipse
  • Subversion: ignore modifications to a file locally on one client only
  • how do I create a dump file from my subversion hosting account?
  • Does any faster centralized version control than SVN exists?
  • 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?

  • Check that an svn repository url does not exist
  • Subversion through a tunnel
  • Git vs. Subversion for multiple large development branches
  • TortoiseSVN checkout failed error svn: E120106: ra_serf: The server sent a truncated HTTP response body
  • SVN Repository Structure - Why is this better?
  • Can Version Control Recognize Lines Being Transposed?
  • 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.