equal
deleted
inserted
replaced
503 confirm = true |
503 confirm = true |
504 |
504 |
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 |
511 if not revs: |
512 if not revs: |
512 raise error.Abort(_(b'phabsend requires at least one changeset')) |
513 raise error.Abort(_(b'phabsend requires at least one changeset')) |
953 stack up to D9. |
954 stack up to D9. |
954 |
955 |
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) |
961 readpatch(repo, drevs, ui.write) |
963 readpatch(repo, drevs, ui.write) |
962 |
964 |
971 def phabupdate(ui, repo, spec, **opts): |
973 def phabupdate(ui, repo, spec, **opts): |
972 """update Differential Revision in batch |
974 """update Differential Revision in batch |
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)) |
979 |
982 |
980 actions = [] |
983 actions = [] |