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

Re: Log entry of a deleted file

From: Joshua Varner <jlvarner_at_gmail.com>
Date: 2005-07-06 15:20:35 CEST

On 7/6/05, Ben Collins-Sussman <sussman@collab.net> wrote:
>
> On Jul 6, 2005, at 2:48 AM, Marco Mans wrote:
>
> > Hi!
> >
> > Today I deleted a file in my working copy and did a commit (=rev
> > 41). After a while
> > I realized that I needed this file. So I did 'svn copy -r 40 http://
> > blablalba/myfile ./myfile',
> > and commited again (now rev. 42). When I now look at the log-
> > history of this file I see
> > something like this:
> >
> > ----------------------------------------------------------------------
> > --
> > r42 | aschoenmakers | 2005-07-06 09:23:23 +0200 (Wed, 06 Jul 2005)
> > | 2 lines
> > myFile re-added cause I needed it
> > ----------------------------------------------------------------------
> > --
> > r39 | aschoenmakers | 2005-07-04 08:47:11 +0200 (Mon, 04 Jul 2005)
> > | 7 lines
> > myFile initialy added
> > ----------------------------------------------------------------------
> > -
> >
> > Why can't I see an entry for revision 41 where I deleted the file???
>
> Because r41 isn't a change to the file, it's a change to its parent.
>
> If you ask for the history of just the file itself, you'll see all
> edits, back to the point where the file was copied. Then the copy
> action will be 'traversed' back to r39, which is the history of the
> original file the copy was made from.
>
>
I think this may be a bug. This is what I expected too, but I ran a
little test (given I'm only running 1.1.1), but if it is a change to
the parent why doesn't show up in it's log.

Below is a sample session where I replicated the situation from the
original e-mail and found that the only way to access the log message
on revision six is with a -r. No object in the repository had the log
attached to it.

Josh

[josh@lcc51 scratch]$ cd dir1/
[josh@lcc51 dir1]$ ls
file1 file2 file3 ignore1
[josh@lcc51 dir1]$ svn remove file1
D file1
[josh@lcc51 dir1]$ svn commit -m "Removed file1"
Deleting dir1/file1
 
Committed revision 6.
[josh_at_lcc51 dir1]$ svn cp -r 5 svn://svn/scratch/trunk/dir1/file1 .
A file1
[josh@lcc51 dir1]$ svn commit -m "readded file1
> "
Adding dir1/file1
 
Committed revision 7.
[josh@lcc51 dir1]$ svn log file1
------------------------------------------------------------------------
r7 | scratch | 2005-07-06 08:02:01 -0500 (Wed, 06 Jul 2005) | 2 lines
 
readded file1
 
------------------------------------------------------------------------
r5 | scratch | 2005-06-08 14:29:36 -0500 (Wed, 08 Jun 2005) | 1 line
 
Removed local changes and reset svn:ignore
------------------------------------------------------------------------
r3 | scratch | 2005-06-08 14:01:33 -0500 (Wed, 08 Jun 2005) | 3 lines
 
Added ignore property
 
 
------------------------------------------------------------------------
r2 | scratch | 2005-06-08 13:58:04 -0500 (Wed, 08 Jun 2005) | 2 lines
 
Test files
 
------------------------------------------------------------------------
[josh@lcc51 dir1]$ svn log .
------------------------------------------------------------------------
r5 | scratch | 2005-06-08 14:29:36 -0500 (Wed, 08 Jun 2005) | 1 line
 
Removed local changes and reset svn:ignore
------------------------------------------------------------------------
r4 | scratch | 2005-06-08 14:23:30 -0500 (Wed, 08 Jun 2005) | 1 line
 
Removed svn:ignore
------------------------------------------------------------------------
r3 | scratch | 2005-06-08 14:01:33 -0500 (Wed, 08 Jun 2005) | 3 lines
 
Added ignore property
 
 
------------------------------------------------------------------------
r2 | scratch | 2005-06-08 13:58:04 -0500 (Wed, 08 Jun 2005) | 2 lines
 
Test files
 
------------------------------------------------------------------------
[josh@lcc51 dir1]$ svn log -r 6
------------------------------------------------------------------------
r6 | scratch | 2005-07-06 07:59:38 -0500 (Wed, 06 Jul 2005) | 1 line
 
Removed file1
------------------------------------------------------------------------
[josh@lcc51 dir1]$ svn log -r 6 file1
svn: File not found: revision 6, path '/trunk/dir1/file1'
[josh@lcc51 dir1]$ svn --version
svn, version 1.1.1 (r11581)
   compiled Dec 15 2004, 14:58:14

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 6 15:23:56 2005

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.