obsolete: alter newerversion return
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 24 Jan 2012 09:53:34 +0100
changeset 132 64d16f07d67f
parent 131 3124889cad55
child 133 aa182b912d62
obsolete: alter newerversion return prepare ability to split and return kill information.
hgext/obsolete.py
--- a/hgext/obsolete.py	Mon Jan 23 18:22:10 2012 +0100
+++ b/hgext/obsolete.py	Tue Jan 24 09:53:34 2012 +0100
@@ -257,7 +257,9 @@
         if current in repo._obsobjrels:
             toproceed.update(repo._obsobjrels[current])
         elif current is not None: # None is kill
-            newer.add(current)
+            newer.add((current,))
+        else:
+            newer.add(())
     return sorted(newer)