clfilter: fix a false positive in the test-obsolete.t
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 30 Nov 2012 21:47:04 +0100
changeset 18015 42f56a0418b3
parent 18014 a39fe76c4c65
child 18016 2a393df0f5cc
clfilter: fix a false positive in the test-obsolete.t We push between two repo which once filtered looks unrelated. Weakness in the current implementation allows this push to be done without -f. But later improvement with filtering will make this push fails for unrelatedness. However we want this push to fail for including bumped changeset. So we had a smaller push --force to make them related.
tests/test-obsolete.t
--- a/tests/test-obsolete.t	Mon Oct 08 19:34:04 2012 +0200
+++ b/tests/test-obsolete.t	Fri Nov 30 21:47:04 2012 +0100
@@ -173,6 +173,13 @@
 
 And that we can't push bumped changeset
 
+  $ hg push ../tmpa -r 0 --force #(make repo)
+  pushing to ../tmpa
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files (+1 heads)
   $ hg push ../tmpa
   pushing to ../tmpa
   searching for changes