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

Re: svnmerge.py not using standard revision syntax

From: Karl Fogel <kfogel_at_google.com>
Date: 2006-08-30 22:43:48 CEST

Blair Zajac <blair@orcaware.com> writes:
>> I sure wish that said "Merged r21307-r21314 via svnmerge..." instead.
>>
>> It's not a completely trivial change, because there are many other
>> similar constructed messages that would have to be changed as well,
>> and I have no intention of writing the patch right now. But just out
>> of curiosity: do y'all agree that it would be a good thing?
>
> <aside>
> Not directly related to your point, but I really don't like the r in
> front of the revision number. I do a lot of copy and pasting revision
> numbers between windows and having to select the revision number
> without the r instead of just double-clicking on it is a pain. Say
> you run a svn log and want the revision number for a merge or
> checkout, you just can't double click the rev number and paste it
> elsewhere.
> </aside>

I agree that it can be a drawback in that situation, but it can also
be very valuable to have an easy regexp for detecting Subversion
revision numbers; I tend to think the latter outweighs the former (see
below for a technique to alleviate the cut-and-paste thing, too).

> Maybe we change svnmerge.py to display the r's and also handle r's in
> revision numbers handed to svn? It would look ugly:
>
> svn merge -r r123:r456 http://....
>
> but it would make life easier.

IMHO we should have made that change years ago, yes :-), no argument
here!

Note that you can sometimes just type the dash and then paste exactly
what's in your clipboard, e.g.,:

        $ svn log -[then paste "r1234" from clipboard, resulting in...]
    ==> $ svn log -r1234

I do this all the time. Still, if -r and -c handled extra "r"s, that
would be even better. I'd like to finish my current work on
incomplete directories before making other tweaks, so feel free to
beat me to this one...

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 30 23:20:08 2006

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

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