uncommit: warn about new instability
authorPatrick Mezard <patrick@mezard.eu>
Tue, 26 Jun 2012 16:21:08 +0200
changeset 315 4bbc17716f5a
parent 314 ebd286f06879
child 316 3db377533c32
uncommit: warn about new instability
hgext/evolve.py
tests/test-uncommit.t
--- a/hgext/evolve.py	Sat Jun 23 19:24:37 2012 +0200
+++ b/hgext/evolve.py	Tue Jun 26 16:21:08 2012 +0200
@@ -680,7 +680,7 @@
     # warning about more obsolete
     for cmd in ['commit', 'push', 'pull', 'graft', 'phase', 'unbundle']:
         entry = extensions.wrapcommand(commands.table, cmd, warnobserrors)
-    for cmd in ['kill', 'amend']:
+    for cmd in ['amend', 'kill', 'uncommit']:
         entry = extensions.wrapcommand(cmdtable, cmd, warnobserrors)
 
     if rebase is not None:
--- a/tests/test-uncommit.t	Sat Jun 23 19:24:37 2012 +0200
+++ b/tests/test-uncommit.t	Tue Jun 26 16:21:08 2012 +0200
@@ -305,3 +305,19 @@
   R n
   $ hg st --copies --change .
   A e
+
+  $ hg debugsuccessors
+  5eb72dbe0cb4 c4cbebac3751
+  5eb72dbe0cb4 c706fe2c12f8
+  5eb72dbe0cb4 e8db4aa611f6
+
+Test instability warning
+
+  $ hg ci -m touncommit
+  $ echo unrelated > unrelated
+  $ hg ci -Am addunrelated unrelated
+  1 new unstables changesets
+  $ hg gdown
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [3] touncommit
+  $ hg uncommit e