Show More
@@ -2872,7 +2872,7 b' def guard(ui, repo, *args, **opts):' | |||||
2872 | patch = None |
|
2872 | patch = None | |
2873 | args = list(args) |
|
2873 | args = list(args) | |
2874 | if opts.get(r'list'): |
|
2874 | if opts.get(r'list'): | |
2875 | if args or opts.get('none'): |
|
2875 | if args or opts.get(r'none'): | |
2876 | raise error.Abort(_('cannot mix -l/--list with options or ' |
|
2876 | raise error.Abort(_('cannot mix -l/--list with options or ' | |
2877 | 'arguments')) |
|
2877 | 'arguments')) | |
2878 | for i in xrange(len(q.series)): |
|
2878 | for i in xrange(len(q.series)): | |
@@ -2886,7 +2886,7 b' def guard(ui, repo, *args, **opts):' | |||||
2886 | patch = args.pop(0) |
|
2886 | patch = args.pop(0) | |
2887 | if patch is None: |
|
2887 | if patch is None: | |
2888 | raise error.Abort(_('no patch to work with')) |
|
2888 | raise error.Abort(_('no patch to work with')) | |
2889 | if args or opts.get('none'): |
|
2889 | if args or opts.get(r'none'): | |
2890 | idx = q.findseries(patch) |
|
2890 | idx = q.findseries(patch) | |
2891 | if idx is None: |
|
2891 | if idx is None: | |
2892 | raise error.Abort(_('no patch named %s') % patch) |
|
2892 | raise error.Abort(_('no patch named %s') % patch) |
General Comments 0
You need to be logged in to leave comments.
Login now