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

Re: SubWCRev shows wrong $WCREV$ value following a deletion

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 02 Jun 2012 09:15:20 +0200

On 31.05.2012 09:18, Craig McQueen wrote:
> I have found that if the most recent commit in a repository was a
> file deletion, then SubWCRev shows the wrong "last committed" value,
> that is, for $WCREV$.
>
> To test this, I did the following on a test repository:
>
> Rev 1: create a file "file.txt". Rev 2: create a template for
> SubWCRev that contains $WCREV$. Rev 3: delete the file "file.txt".
>
> Then, I did an update and then ran SubWCRev on the template. It
> substituted 2 rather than 3 for $WCREV$. This looks like a bug. Is
> that right?
>
> (Tortoise SVN 1.7.7 on Windows XP SP3 32-bit.)

That's by design. When you run SubWCRev with the default options, it
only checks the files for their last-commit revision. Since the file you
deleted isn't there anymore, it can't read the revision from it.

But if you pass -f to SubWCRev, it will also use the revisions of the
folders and then you get the 'correct' revision, i.e. the revision you
want in your situation.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2968419
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-06-02 09:15:37 CEST

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

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