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

RE: svn copy not updating Last Changed Rev

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Mon, 29 Mar 2010 18:15:19 -0400

> On Mon, Mar 29, 2010 at 23:53:43 +0300, Daniel Shahaf wrote:
> > [[[
> > % svn up
> > At revision 1.
> >
> > % svnversion
> > 1
> >
> > % svn cp -q iota iota2
> >
> > % svn ci -q -m "r2: add iota2"
> >
> > % svn cp -q ^/trunk/iota ^/trunk/iota3 -m "r3: add iota3"
> >
> > % svn up -q
> >
> > % svn info iota2 iota3 | grep "Last Changed Rev"
> > Last Changed Rev: 2
> > Last Changed Rev: 3
> >
>
> Try it with a directory that includes files and subdirectories and
> you'll be able to reproduce it. The actual directory used as the root of
> the copy operation has the correct Last Changed Rev, as I noted already:
>
> > SVN info on the root of the copy shows the expected information:
> >
> > $ svn info file:///tmp/svn-repo/branches/mine
> > Last Changed Author: jadevree
> > Last Changed Rev: 5
> > Last Changed Date: 2010-03-29 13:43:06 -0400 (Mon, 29 Mar 2010)
>
> It is the files and subdirectories of this that are wrong:
>
> > But SVN info on the file that got copied with the branch is wrong:
> >
> > $ svn info file:///tmp/svn-repo/branches/mine/file
> > Last Changed Author: jadevree
> > Last Changed Rev: 2
> > Last Changed Date: 2010-03-29 13:40:30 -0400 (Mon, 29 Mar 2010)
>
> And this is inconsistent with what svn log reports as the last change:
>
> > $ svn log file:///tmp/svn-repo/branches/mine/file
> > ------------------------------------------------------------------------
> > r5 | jadevree | 2010-03-29 13:43:06 -0400 (Mon, 29 Mar 2010) | 1 line
> >
> > test branch
> > ------------------------------------------------------------------------
> > r2 | jadevree | 2010-03-29 13:40:30 -0400 (Mon, 29 Mar 2010) | 1 line
> >
> > foo
> > ------------------------------------------------------------------------
>

You don't show what your pwd is when you do these commands. but I think the default range is 1:BASE if you are in a working copy. Does the log change if you use:

svn log -r HEAD :///tmp/svn-repo/branches/mine/fil

BOb

Received on 2010-03-30 00:14:34 CEST

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.