diff hgext/obsolete.py @ 300:3b1f326878e5

obsolete: suspended changeset with secret only children should be secret too test-obsolete-push.t: exhibit outgoing bug with suspended changeset in this case
author Patrick Mezard <patrick@mezard.eu>
date Sat, 23 Jun 2012 01:14:49 +0200
parents eda6491ca269
children b41ff69388a8
line wrap: on
line diff
--- a/hgext/obsolete.py	Fri Jun 22 18:04:43 2012 +0200
+++ b/hgext/obsolete.py	Sat Jun 23 01:14:49 2012 +0200
@@ -853,7 +853,8 @@
             self._clearobsoletecache()
             # this is mainly for safety purpose
             # both pull and push
-            expobs = [c.node() for c in repo.set('extinct() - secret()')]
+            query = '(obsolete() - obsolete()::(unstable() - secret())) - secret()'
+            expobs = [c.node() for c in repo.set(query)]
             phases.retractboundary(repo, 2, expobs)
 
         ### Disk IO