Mercurial > evolve
changeset 315:4bbc17716f5a
uncommit: warn about new instability
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Tue, 26 Jun 2012 16:21:08 +0200 |
parents | ebd286f06879 |
children | 3db377533c32 |
files | hgext/evolve.py tests/test-uncommit.t |
diffstat | 2 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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