hg grep option

Thomas Arendsen Hein thomas at intevation.de
Sat Feb 16 06:34:40 CST 2008


* Greg Lindahl <lindahl at pbm.com> [20080216 04:05]:
> On Fri, Feb 15, 2008 at 05:53:35PM -0800, Greg Lindahl wrote:
> > "hg grep" is quite useful -- any chance that it could acquire a means
> > of printing the date, like the option to print the user? Or a more
> > general template facility?
> 
> Something roughly like this, only more cleverly implemented.

-d/--date is now in the crew repository, with -q/--quiet you can get
the short date you proposed. I changed annotate to print short dates
with -q, too.

> BTW, how can I figure out what the elements of get(r) are? I'm a
> python n00b.

print repr(get(r))

Thanks for the suggestion,
Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial mailing list