changeset 18015:42f56a0418b3

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.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 30 Nov 2012 21:47:04 +0100
parents a39fe76c4c65
children 2a393df0f5cc
files tests/test-obsolete.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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