Sunday, December 07, 2008

svn peg revisions

I needed a peg revision for the first time today.  I deleted a directory from a repository, say foo at revision X, and created a new one with the same name.  Then I deleted the new one and wanted the old one back.  I'm now at revision Y.  When I tried to

svn copy -r X foo ./foo

I got the error

svn: File not found: revision Y, path 'foo'

What a strange error message!  Why revision Y?  Anyway, svn is confused.  The solution is

svn copy -r X foo@X ./foo

1 comment:

  1. Anonymous8:00 AM

    Amiable post and this fill someone in on helped me alot in my college assignement. Say thank you you on your information.

    ReplyDelete