[PATCH 4 of 7] setup: hgbuildmo inherits from Command
Mads Kiilerich
mads at kiilerich.com
Tue Nov 8 17:01:22 CST 2011
Simon Heimberg wrote, On 11/08/2011 11:36 PM:
> # HG changeset patch
> # User Simon Heimberg<simohe at besonet.ch>
> # Date 1320174833 -3600
> # Node ID 287a7c88281cbe54abb385305ba188afdaa8e1fe
> # Parent 9fc70a870523c5fb877ab7bd265d5ff915dda9ab
> setup: hgbuildmo inherits from Command
Why?
> diff -r 9fc70a870523 -r 287a7c88281c setup.py
> --- a/setup.py Die Nov 01 20:13:53 2011 +0100
> +++ b/setup.py Die Nov 01 20:13:53 2011 +0100
> @@ -192,7 +192,7 @@
> sub_commands = [('build_mo', None),
> ] + build.sub_commands
>
> -class hgbuildmo(build):
> +class hgbuildmo(Command):
>
> description = "build translations (.mo files)"
>
> @@ -222,6 +222,12 @@
> self.mkpath(join('mercurial', modir))
> self.make_file([pofile], mobuildfile, spawn, (cmd,))
>
> + def initialize_options(self):
> + pass
> +
> + def finalize_options(self):
> + pass
> +
>
> class hgdist(Distribution):
> pure = 0
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list