]> granicus.if.org Git - python/commitdiff
use only the hex version, since the revno is unreliable across repos
authorBenjamin Peterson <benjamin@python.org>
Sun, 13 Mar 2011 21:36:08 +0000 (16:36 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 13 Mar 2011 21:36:08 +0000 (16:36 -0500)
Parser/asdl_c.py
Python/Python-ast.c

index 147ac8d746351e8b94e7555275d28015d210f769..cdce5a3f032514ec5a810630db39078c1f8dfbe1 100755 (executable)
@@ -1138,7 +1138,7 @@ c_file_msg = """
 
 def get_file_revision(f):
     """Fish out the last change to a file in hg."""
-    args = ["hg", "log", "--template", "{rev}:{node|short}", "--limit", "1", f]
+    args = ["hg", "log", "--template", "{node|short}", "--limit", "1", f]
     p = subprocess.Popen(args, stdout=subprocess.PIPE)
     out = p.communicate()[0]
     if p.returncode:
index 3150d104ebb5d154ffae67de393d5f852a78e520..6b1ea3cbabb8b0d5626fb8ea36e47d8d9df55c15 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-   __version__ 68410:0daa6ba25d9b.
+   __version__ 0daa6ba25d9b.
 
    This module must be committed separately after each AST grammar change;
    The __version__ number is set to the revision number of the commit
@@ -6739,8 +6739,7 @@ PyInit__ast(void)
             NULL;
         if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
                 return NULL;
-        if (PyModule_AddStringConstant(m, "__version__", "68410:0daa6ba25d9b")
-            < 0)
+        if (PyModule_AddStringConstant(m, "__version__", "0daa6ba25d9b") < 0)
                 return NULL;
         if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return
             NULL;