Show More
@@ -505,6 +505,7 b' def phabsend(ui, repo, *revs, **opts):' | |||||
505 | phabsend will check obsstore and the above association to decide whether to |
|
505 | phabsend will check obsstore and the above association to decide whether to | |
506 | update an existing Differential Revision, or create a new one. |
|
506 | update an existing Differential Revision, or create a new one. | |
507 | """ |
|
507 | """ | |
|
508 | opts = pycompat.byteskwargs(opts) | |||
508 | revs = list(revs) + opts.get(b'rev', []) |
|
509 | revs = list(revs) + opts.get(b'rev', []) | |
509 | revs = scmutil.revrange(repo, revs) |
|
510 | revs = scmutil.revrange(repo, revs) | |
510 |
|
511 | |||
@@ -955,6 +956,7 b' def phabread(ui, repo, spec, **opts):' | |||||
955 | If --stack is given, follow dependencies information and read all patches. |
|
956 | If --stack is given, follow dependencies information and read all patches. | |
956 | It is equivalent to the ``:`` operator. |
|
957 | It is equivalent to the ``:`` operator. | |
957 | """ |
|
958 | """ | |
|
959 | opts = pycompat.byteskwargs(opts) | |||
958 | if opts.get(b'stack'): |
|
960 | if opts.get(b'stack'): | |
959 | spec = b':(%s)' % spec |
|
961 | spec = b':(%s)' % spec | |
960 | drevs = querydrev(repo, spec) |
|
962 | drevs = querydrev(repo, spec) | |
@@ -973,6 +975,7 b' def phabupdate(ui, repo, spec, **opts):' | |||||
973 |
|
975 | |||
974 | DREVSPEC selects revisions. See :hg:`help phabread` for its usage. |
|
976 | DREVSPEC selects revisions. See :hg:`help phabread` for its usage. | |
975 | """ |
|
977 | """ | |
|
978 | opts = pycompat.byteskwargs(opts) | |||
976 | flags = [n for n in b'accept reject abandon reclaim'.split() if opts.get(n)] |
|
979 | flags = [n for n in b'accept reject abandon reclaim'.split() if opts.get(n)] | |
977 | if len(flags) > 1: |
|
980 | if len(flags) > 1: | |
978 | raise error.Abort(_(b'%s cannot be used together') % b', '.join(flags)) |
|
981 | raise error.Abort(_(b'%s cannot be used together') % b', '.join(flags)) |
General Comments 0
You need to be logged in to leave comments.
Login now