diff mercurial/repair.py @ 16623:def6a19c3b4d

repair: no need to call filterunknown() in strip() Calling strip() will eventually trigger localrepo.destroyed() which will invalidate _parseroots. It will call filterunknown() upon reload. Changes to test-keyword.t are related to commit --debug running after either qpop or rollback.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 10 May 2012 18:21:15 +0200
parents 692bf06bb1af
children 3c738cb162bf
line wrap: on
line diff
--- a/mercurial/repair.py	Thu May 10 18:21:15 2012 +0200
+++ b/mercurial/repair.py	Thu May 10 18:21:15 2012 +0200
@@ -6,7 +6,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from mercurial import changegroup, bookmarks, phases
+from mercurial import changegroup, bookmarks
 from mercurial.node import short
 from mercurial.i18n import _
 import os
@@ -170,7 +170,3 @@
         raise
 
     repo.destroyed()
-
-    # remove potential unknown phase
-    # XXX using to_strip data would be faster
-    phases.filterunknown(repo)