Commits

Patrick Mézard committed 4bbc177

uncommit: warn about new instability

  • Participants
  • Parent commits ebd286f
  • Branches default

Comments (0)

Files changed (2)

     # 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:

tests/test-uncommit.t

   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