[PATCH 10 of 27 clfilter V2] clfilter: strip logic should be unfiltered

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Oct 8 16:38:01 CDT 2012

# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1349709129 -7200
# Node ID 6b33b8080e38bab1e824902107689cef55a99ce5
# Parent  e03fa7f83803f3f0ce7dfc8c28e924bda14e821f
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
@@ -56,6 +56,7 @@
     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