[PATCH 14 of 14 clfilter part 1 V2] clfilter: strip logic should be unfiltered

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Mon Nov 26 12:34:47 CST 2012

# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1349709129 -7200
# Node ID 8b02ab542256e6d659636674dcc7c4c9ef02b102
# Parent  d4cdb72a234b043e5f4d9eed40bca1a25fd9dc4b
clfilter: strip logic should be unfiltered

Strip is a "write" operation that better be aware of the whole repo content before
destroying it.

Only the low level function is altered. Top level command will still process
it's argument filtered (if any filtering is in place)

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -54,10 +54,11 @@ def _collectbrokencsets(repo, files, str
     return s
 def strip(ui, repo, nodelist, backup="all", topic='backup'):
+    repo = repo.unfiltered()
     # It simplifies the logic around updating the branchheads cache if we only
     # have to consider the effect of the stripped revisions and not revisions
     # missing because the cache is out-of-date.

More information about the Mercurial-devel mailing list