1.0 approaches

Ralf Schmitt schmir at gmail.com
Wed Mar 12 07:49:47 CDT 2008

On Fri, Feb 8, 2008 at 1:49 AM, Matt Mackall <mpm at selenic.com> wrote:

> Looks like it's just about time to cut a 1.0 release. I think we've been
> at a reasonable 1.0-level of features and stability for a while now, and
> we probably could have named the 0.9.5 release "1.0" so there's no point
> in putting it off.

I think it would be nice if mercurial would be installable with
The current version c7253d1a774e from  http://selenic.com/repo/hg/ is not:

  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 63, in run
  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 29, in
  File "setup.py", line 16, in <module>
    import mercurial.version
  File "/home/ralf/mercurial.hg/mercurial/version.py", line 15, in <module>
    import util
  File "/home/ralf/mercurial.hg/mercurial/util.py", line 1353, in <module>
    class atomictempfile(posixfile):
TypeError: Error when calling the metaclass bases
    first argument must be callable

With the following short diff it works. removing the "import util" fixes it.

diff --git a/mercurial/version.py b/mercurial/version.py
--- a/mercurial/version.py
+++ b/mercurial/version.py
@@ -12,7 +12,7 @@
 import os
 import re
 import time
-import util
+#import util

 unknown_version = 'unknown'
 remembered_version = False
@@ -49,7 +49,7 @@
     """Store version information."""
     global remembered_version
     if not version and os.path.isdir(".hg"):
-        f = util.popen("hg identify")  # use real hg installation
+        f = os.popen("hg identify")  # use real hg installation
         ident = f.read()[:-1]
         if not f.close() and ident:
             ids = ident.split(' ', 1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080312/7149ac88/attachment.htm 

More information about the Mercurial mailing list