##// END OF EJS Templates
shelve: add --keep to list of allowables
Jordi Gutiérrez Hermoso -
r42187:00c1ee0f default
parent child Browse files
Show More
@@ -1120,6 +1120,7 b' def shelvecmd(ui, repo, *pats, **opts):'
1120 # ('date', {'create'}), # ignored for passing '--date "0 0"' in tests
1120 # ('date', {'create'}), # ignored for passing '--date "0 0"' in tests
1121 ('delete', {'delete'}),
1121 ('delete', {'delete'}),
1122 ('edit', {'create'}),
1122 ('edit', {'create'}),
1123 ('keep', {'create'}),
1123 ('list', {'list'}),
1124 ('list', {'list'}),
1124 ('message', {'create'}),
1125 ('message', {'create'}),
1125 ('name', {'create'}),
1126 ('name', {'create'}),
@@ -933,6 +933,15 b' Test shelve --keep'
933
933
934 $ hg unshelve
934 $ hg unshelve
935 unshelving change 'default'
935 unshelving change 'default'
936 $ hg shelve --keep --list
937 abort: options '--list' and '--keep' may not be used together
938 [255]
939 $ hg shelve --keep --patch
940 abort: options '--patch' and '--keep' may not be used together
941 [255]
942 $ hg shelve --keep --delete
943 abort: options '--delete' and '--keep' may not be used together
944 [255]
936 $ hg shelve --keep
945 $ hg shelve --keep
937 shelved as default
946 shelved as default
938 $ hg diff
947 $ hg diff
General Comments 0
You need to be logged in to leave comments. Login now