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

RE: Re: restore deleted file

From: Brummer, Byron <ByronBrummer_at_LiveNation.com>
Date: 2007-07-24 22:05:21 CEST

Gaurav Kothiyal wrote:
> Find the last revision in which it existed
> svn log -v . | less

        Yes, but not always.

        This looks only in the current PEG version of this directory.
        the file you're looking to add back existed in a previous PEG
        of this directory you won't find it.

        The only "correct" way is to log the entire repository from the


                cd /some/working/copy
                cd src
                svn rm whatever.c
                svn ci -m 'blagh'
                cd ..
                svn rm src
                svn ci -m 'blagh'
                svn mkdir src
                svn ci -m 'blagh src'
                cd src
                svn log -v . | less

                No history of whatever.c found because the current "src"
is a
                different directory PEG version.

        Another problem you'll run into is that it's entirely possible
to not
        find the deletion of "whatever.c" anywhere in the log at all.
If it
        was deleted because its parent directory was deleted, that's
what will
        show up, not whatever.c. Or the parent's parent, etc, all the
way up
        the tree.

        So you can't actually look for the deleted version at all...
        you really need to look for is the last version with a mention
        whatever.c (the last commit whatever.c itself directly had that
        not a delete).


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 24 22:04:26 2007

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.