monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] [PATCH] parent selector 'p:xxx'


From: Ludovic Brenta
Subject: Re: [Monotone-devel] [PATCH] parent selector 'p:xxx'
Date: Sat, 06 Oct 2007 22:37:18 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Ralf S. Engelschall" <address@hidden> writes:
> This afternoon I finally got really nerved having to type
>
>     $ mtn diff -r `mtn automate parent <rev>` -r <rev>
>
> or the rather ugly, unhandy and partly unrecognizeable
>
>     $ mtn log --diffs --no-graph --brief --from <rev> --to <rev>

There is also

$ mtn log --diffs --no-graph --brief --from <rev> --last=1

> just to get the diff output which has lead to a particular revision
> <rev> (which in turn I usually figure out via "mtn annotate"
> beforehand).
>
> I don't know whether it is just me, but I rather often need the _parent_
> of a revision (if more parents exists, I'm out of luck doing an easy
> diff anyway) and especially -- even if a command can figure it out --
> want to avoid even having to copy & paste it more revision ids than
> necessary.
>
> So, find appended a small patch against h:n.v.m which implements a
> "p:<rev>" selector. With this I now can finally use short commands like:
>
>     $ mtn diff -r p:<rev> -r <rev>
>
> The <rev> here can be an appreviated revision, too.

I like that and I'm not the only one:

http://savannah.nongnu.org/bugs/?19753
http://savannah.nongnu.org/bugs/?18302

-- 
Ludovic Brenta.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]