Show More
@@ -691,21 +691,21 b' def shelvecmd(ui, repo, *pats, **opts):' | |||
|
691 | 691 | cmdutil.checkunfinished(repo) |
|
692 | 692 | |
|
693 | 693 | allowables = [ |
|
694 | ('addremove', 'create'), # 'create' is pseudo action | |
|
695 | ('cleanup', 'cleanup'), | |
|
696 | # ('date', 'create'), # ignored for passing '--date "0 0"' in tests | |
|
697 | ('delete', 'delete'), | |
|
698 | ('edit', 'create'), | |
|
699 | ('list', 'list'), | |
|
700 | ('message', 'create'), | |
|
701 | ('name', 'create'), | |
|
702 | ('patch', 'list'), | |
|
703 | ('stat', 'list'), | |
|
694 | ('addremove', set(['create'])), # 'create' is pseudo action | |
|
695 | ('cleanup', set(['cleanup'])), | |
|
696 | # ('date', set(['create'])), # ignored for passing '--date "0 0"' in tests | |
|
697 | ('delete', set(['delete'])), | |
|
698 | ('edit', set(['create'])), | |
|
699 | ('list', set(['list'])), | |
|
700 | ('message', set(['create'])), | |
|
701 | ('name', set(['create'])), | |
|
702 | ('patch', set(['list'])), | |
|
703 | ('stat', set(['list'])), | |
|
704 | 704 | ] |
|
705 | 705 | def checkopt(opt): |
|
706 | 706 | if opts[opt]: |
|
707 | 707 | for i, allowable in allowables: |
|
708 |
if opts[i] and opt |
|
|
708 | if opts[i] and opt not in allowable: | |
|
709 | 709 | raise util.Abort(_("options '--%s' and '--%s' may not be " |
|
710 | 710 | "used together") % (opt, i)) |
|
711 | 711 | return True |
General Comments 0
You need to be logged in to leave comments.
Login now