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

Re: "Find HEAD" button in svn:externals editor

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 22 May 2014 19:36:09 +0200

On 20.05.2014 23:26, Ben Fritz wrote:
> I'm using version 1.8.7 of TortoiseSVN on 64-bit Windows 7.
> I find the "Find HEAD-Revision" button in the svn:externals editor to
> be *almost* useful. But because of this one issue, I can't ever
> actually use it.
> I'd like to use this button to determine whether I need to update my
> externals definitions. I'd like to use it to automatically grab a
> revision to use as the peg revision.
> For this to work, the button should grab the revision of the last
> change to the given folder or file. Instead, it grabs the revision of
> the last commit to the entire repository containing the folder or
> file.
> I know that these peg revisions will technically give me the same file
> content. But I can't just commit changes willy-nilly to the externals
> definitions every time I check. And determining that an external has
> not actually been changed after such a commit would require an extra
> several steps to view the history of the folder or file in question to
> figure out that the two revisions are actually identical.

set the peg revision as it is done now, run update.
If you see any changes in the dialog that shows the update progress, use
that new revision.
If not, revert the property change.

> Is there some use-case that requires the last committed version
> anywhere in the repository? Or can this be changed to pull in the last
> change revision instead? As the feature stands right now, it is pretty
> much useless for the purpose of checking for updates on all the
> externals at once, and automatically updating to the minimum required
> version for each rule.

To get the "last changed revision" we would have to fetch the log for
the folder, not just ask the repo for the HEAD revision. That would take
a lot longer.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-05-22 19:36:08 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.