[thg-dev] Re: Recommended repository viewer?

Yuya Nishihara yuya at tcha.org
Fri Dec 19 15:32:31 UTC 2014


On Mon, 15 Dec 2014 16:40:53 +0100, Angel Ezquerra wrote:
> El 15/12/2014 15:39, "Yuya Nishihara" <yuya at tcha.org> escribió:
> > On Sun, 14 Dec 2014 17:15:18 -0800, Pierre-Yves David wrote:
> > > On 12/12/2014 08:53 AM, Simon King wrote:
> > > > It's a shame that "thg log" doesn't support a "-r" switch to specify
> > > > the revisions that you want to view. If it did, the equivalent of
> > > > Chris' git script would be something like:
> > > >
> > > >    cur=`hg log -r tip --template "{rev}"`
> > > >    hg pull -u "$@"
> > > >    thg log -r "$cur:"
> > > >
> > > > I know you can already enter revsets in the thg workbench, so it would
> > > > "simply" need to take the command line parameter and pre-fill the
> > > > revset search field...
> > >
> > > This sounds like a sensible idea. I'm sure upstream thg accept patches.
> >
> > It will need a different switch than "-r".  "thg log" should be able to
> >
> >  a) filter by the given revset
> >  b) or select (go to) the given revision.
> >
> > "thg annotate -r" does (b).
> 
> We could add --revset argument, or maybe --filter.

"thg log -r SELECT_REV -k KEYWORD_OR_REVSET" will be available in
TortoiseHg 3.3.

Regards,



More information about the Mercurial mailing list