Mercurial > hg
changeset 27694:2dc363274702
shelve: hook afterresolvedstates
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 05 Jan 2016 22:23:27 +0000 |
parents | 2b9126d6588b |
children | fb0cc863d172 |
files | hgext/shelve.py tests/test-shelve.t |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/shelve.py Fri Jan 08 12:35:02 2016 -0600 +++ b/hgext/shelve.py Tue Jan 05 22:23:27 2016 +0000 @@ -852,3 +852,5 @@ [shelvedstate._filename, False, False, _('unshelve already in progress'), _("use 'hg unshelve --continue' or 'hg unshelve --abort'")]) + cmdutil.afterresolvedstates.append( + [shelvedstate._filename, _('hg unshelve --continue')])
--- a/tests/test-shelve.t Fri Jan 08 12:35:02 2016 -0600 +++ b/tests/test-shelve.t Tue Jan 05 22:23:27 2016 +0000 @@ -395,6 +395,7 @@ $ hg revert -r . a/a $ hg resolve -m a/a (no more unresolved files) + continue: hg unshelve --continue $ hg commit -m 'commit while unshelve in progress' abort: unshelve already in progress @@ -840,6 +841,7 @@ reverting a/a (glob) $ hg resolve -m a/a (no more unresolved files) + continue: hg unshelve --continue $ hg unshelve -c rebasing 5:e42a7da90865 "changes to: second" (tip) note: rebase of 5:e42a7da90865 created no changes to commit