diff tests/test-obsolete.t @ 17172:12fdaa30063a

push: refuse to push unstable changesets without force User should resolve unstability locally before pushing the same way we encourage user to merge locally instead of pushing a new remote head. If we are to push obsolete changeset, at least one set of the pushed set will be either obsolete or unstable. The check is narrowed to only heads.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 10 Jul 2012 01:39:03 +0200
parents 9c750c3e4fac
children c621f84dbb35
line wrap: on
line diff
--- a/tests/test-obsolete.t	Fri Jul 06 00:18:09 2012 +0200
+++ b/tests/test-obsolete.t	Tue Jul 10 01:39:03 2012 +0200
@@ -196,7 +196,7 @@
   $ hg -R tmpb push tmpd
   pushing to tmpd
   searching for changes
-  abort: push includes an obsolete changeset: cdbce2fbb163!
+  abort: push includes an obsolete changeset: ca819180edb9!
   [255]
   $ hg -R tmpd debugobsolete
   $ hg -R tmpb push tmpd --rev 'not obsolete()'
@@ -315,3 +315,8 @@
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     add a
   
+  $ hg push ../tmpc/
+  pushing to ../tmpc/
+  searching for changes
+  abort: push includes an unstable changeset: 7878242aeece!
+  [255]