Properly initialize version string in python-hglib setup.py
Augie Fackler
raf at durin42.com
Wed May 27 18:33:28 UTC 2015
mpm, as an FYI here's an hglib patch that I'm just delegating to you.
On Tue, May 26, 2015 at 10:56:29PM +0000, Peter Elmers wrote:
> # HG changeset patch
> # User Peter Elmers <peter.elmers at yahoo.com>
> # Date 1432680605 25200
> # Tue May 26 15:50:05 2015 -0700
> # Node ID 9afa1d6c9da357b3f61f7e4eb4b08390c4bc5fd1
> # Parent ec935041d1ff0fd2aa8cb666d79e6dcca398ddba
> version: declare a default version in setup.py (issue3924)
>
> Leaving version as "unknown" breaks `pip freeze`, so we should default the
> version to the current version and let it update itself if a more precise one
> can be pulled from version control.
>
> diff -r ec935041d1ff -r 9afa1d6c9da3 setup.py
> --- a/setup.py Wed Apr 01 13:34:58 2015 -0500
> +++ b/setup.py Tue May 26 15:50:05 2015 -0700
> @@ -2,7 +2,7 @@
> from distutils.core import setup
>
> # query Mercurial for version number
> -version = 'unknown'
> +version = '1.6'
> if os.path.isdir('.hg'):
> cmd = "hg id -i -t"
> l = os.popen(cmd).read().split()
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list