# HG changeset patch # User Patrick Mezard # Date 1340720468 -7200 # Node ID 4bbc17716f5a1a9409383c87ba39ee841ffc2448 # Parent ebd286f06879181eb269408c2e4ca925141262e8 uncommit: warn about new instability diff -r ebd286f06879 -r 4bbc17716f5a hgext/evolve.py --- 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: diff -r ebd286f06879 -r 4bbc17716f5a tests/test-uncommit.t --- 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