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

Re: [TSVN] feature request

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-03-10 10:26:42 CET

SteveKing wrote:
> Molle Bestefich wrote:
>>> What does he use the $Rev keyword anyway? In Subversion, that
>>> keyword reflects the "last committed revision", i.e. the revision
>>> in which that file last was committed.
[snip]
>>> It doesn't reflect the revision of the repository!
>>> Usually people want the revision of the repository, and that's what
>>> the SubWCRev.exe tool is for (see the download page).
>>
>> Forgive my ignorance.
>> Why would they want that?
>> I'm thinking 'because it looks pretty if a distributed package has
>> components which carry the same version number', but I can't convince
>> myself that that's reasonable.

If I may be picky for a minute, SubWCRev does not reflect the repository
revision. It reflects the highest revision in the WC (or part of the WC)
you have asked it to crawl. If you have 2 independent projects in your
repo, using SubWCRev in each of their WCs will produce the last repo
revision that a commit was made for that whole project, not necessarily
HEAD.

Provided the tree you ask it to crawl contains all dependencies as well,
you will get the repo version required to rebuild the same WC.

It falls down if you are using svn:externals, but there is nothing that
can be done about that, as externals can come from a different repo
entirely. Your 'about' box would have to list different revisions for
each external chunk, as TSVN's does.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Mar 10 10:25:58 2005

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

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