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)

  • How to set up svn conflict resolution with meld?
  • Can't find git-svn on Mac OS X Leopard after installing via MacPorts
  • xcopy ASP.NET deployment of a Subversion-managed project
  • Commit several projects in Eclipse SVN
  • wso2 svn update - E205011: Failure occurred processing one or more externals definitions
  • SVN permissions for a single file
  • 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?

  • Any way to guarantee that a git user doesn't use fake account info when commiting and pushing?
  • Subversion - how do I control user access for single repository when SVNParentPath is used?
  • How to give credit / keep track of contributions?
  • SVN common code with externals
  • Sync svn and mercurial repo
  • Command line to list all merge(copies) in subversion?
  • 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.