[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Extracting old revisions after a project has moved in the repository

From: Marcus Rohrmoser <marcus.rohrmoser_at_gmx.de>
Date: 2004-06-23 14:29:23 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Spain schrieb:
~ > We now have a requirement for branches and tags, so I created 'trunk',
| 'branch' and 'tags' directories and moved myProject below trunk, viz:
| ...
| cd \sandbox\myProject
| svn diff -r167:173 myFile.txt // both these revs are pre-move
| svn: file:///c:/repository/trunk/myProject/myFile.txt was not found in
| the repository at revision 167

Yes, as the current wc root (file:///c:/repository/trunk/myProject) doesn't
exist in rev 167 the files cannot be found.
Either use
        svn cat -r 167 REPOURI/filename > filename
to get single files and diff them, use
        svn diff [-r N[:M]] [--old OLD-TGT] [--new NEW-TGT] [PATH...]
or
        svn diff [-r N[:M]] URL1[@N] URL2[@M]
e.g.
        svn diff file:///c:/repository/myProject_at_167
file:///c:/repository/trunk/myProject_at_173

(see svn help diff for details)
or checkout a separate (old) wc from the root (ugly!) and diff the directories:
        svn co -r 167 file:///c:/repository/myProject

Renaming folders - especially introducing /trunk/ - always makes diffing their
content back in history (before the rename) ugly, naturally.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA2XeiXjHhiL8/upYRAqStAJ0U0HLyiZYYLy2McECAyELPGvWbtgCfZhs4
/wqN+6Fv9ehAUGBL2R4jKpY=
=Le3y
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 23 14:30:10 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.