##// END OF EJS Templates
phabricator: add --blocker argument to phabsend to specify blocking reviewers...
Ian Moody -
r42637:f33d3ee1 default
parent child Browse files
Show More
@@ -515,6 +515,7 b' def userphids(repo, names):'
515 515 [(b'r', b'rev', [], _(b'revisions to send'), _(b'REV')),
516 516 (b'', b'amend', True, _(b'update commit messages')),
517 517 (b'', b'reviewer', [], _(b'specify reviewers')),
518 (b'', b'blocker', [], _(b'specify blocking reviewers')),
518 519 (b'm', b'comment', b'',
519 520 _(b'add a comment to Revisions with new/updated Diffs')),
520 521 (b'', b'confirm', None, _(b'ask for confirmation before sending'))],
@@ -568,8 +569,15 b' def phabsend(ui, repo, *revs, **opts):'
568 569
569 570 actions = []
570 571 reviewers = opts.get(b'reviewer', [])
572 blockers = opts.get(b'blocker', [])
573 phids = []
571 574 if reviewers:
572 phids = userphids(repo, reviewers)
575 phids.extend(userphids(repo, reviewers))
576 if blockers:
577 phids.extend(map(
578 lambda phid: b'blocking(%s)' % phid, userphids(repo, blockers)
579 ))
580 if phids:
573 581 actions.append({b'type': b'reviewers.add', b'value': phids})
574 582
575 583 drevids = [] # [int]
General Comments 0
You need to be logged in to leave comments. Login now