[PATCH] output the number of files updated/merged/unresolved on update

Matt Mackall mpm at selenic.com
Wed Dec 28 17:32:36 UTC 2005


On Wed, Dec 28, 2005 at 06:19:20PM +0100, Benoit Boissinot wrote:
> # HG changeset patch
> # User Benoit Boissinot <benoit.boissinot at ens-lyon.org>
> # Node ID 5114d22bbd0ca5735ce45bca995b7763c7d38914
> # Parent  428e0a9c9968e3922f70f3fa50343779cbeb021e
> ui: output the number of file updated/merged/removed/... on update

Nice, but slightly too cute:

> +        stat = ((len(get), _("updated")),
> +                (len(merge) - len(unmerge), _("merged")),
> +                (len(remove), _("removed")),
> +                (len(unmerge), _("unresolved")))
> +        note = ", ".join([_("%d files %s") % s for s in stat if s[0] > 0])

I'd rather not have the 0 values disappear, it creates headaches for
scripts that parse our output. That's also a reason not to do special
handling for "1 files".

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list