[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: Jon DeVree <jadevree_at_mtu.edu>
Date: Mon, 29 Mar 2010 17:57:42 -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
> ------------------------------------------------------------------------

-- 
Jon
"lib64 is a wart on history and should never have been there."
        -Tollef Fog Heen
Received on 2010-03-29 23:58:23 CEST

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