versioning in vendor distributions
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed Apr 2 20:13:24 CDT 2008
On Wed, 2 Apr 2008 15:09:59 -0700, Danek Duvall <danek.duvall at sun.com> wrote:
> Here's a simple patch for printing out a patchlist. Let me know how
> horrible you think it is. :)
IMHO, it isn't `horrible' at all :)
> Add support for patch list in version output.
>
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -2829,6 +2829,11 @@
> "There is NO\nwarranty; "
> "not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
> ))
> + patches = version.get_patches()
> + if patches:
> + ui.status(_("\nLocally applied patches:\n"))
> + for patch in patches:
> + ui.status(" " + patch + "\n")
I'd probably use string interpolation here:
for patch in patches:
ui.status(" %s\n" % (patch))
I'm not sure if it makes sense to localize patch names too, so the lack
of _(...) is probably ok.
More information about the Mercurial
mailing list