Mercurial > public > mercurial-scm > hg-stable
comparison hgext/phabricator.py @ 45140:c59e7bed8924
phabupdate: allow resigning from revisions
Differential Revision: https://phab.mercurial-scm.org/D8756
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 15 Jul 2020 14:18:18 -0400 |
parents | 383b8c77096d |
children | b3b0cd8b9366 |
comparison
equal
deleted
inserted
replaced
45139:383b8c77096d | 45140:c59e7bed8924 |
---|---|
2166 (b'', b'abandon', False, _(b'abandon revisions')), | 2166 (b'', b'abandon', False, _(b'abandon revisions')), |
2167 (b'', b'reclaim', False, _(b'reclaim revisions')), | 2167 (b'', b'reclaim', False, _(b'reclaim revisions')), |
2168 (b'', b'close', False, _(b'close revisions')), | 2168 (b'', b'close', False, _(b'close revisions')), |
2169 (b'', b'reopen', False, _(b'reopen revisions')), | 2169 (b'', b'reopen', False, _(b'reopen revisions')), |
2170 (b'', b'plan-changes', False, _(b'plan changes for revisions')), | 2170 (b'', b'plan-changes', False, _(b'plan changes for revisions')), |
2171 (b'', b'resign', False, _(b'resign as a reviewer from revisions')), | |
2171 (b'', b'commandeer', False, _(b'commandeer revisions')), | 2172 (b'', b'commandeer', False, _(b'commandeer revisions')), |
2172 (b'm', b'comment', b'', _(b'comment on the last revision')), | 2173 (b'm', b'comment', b'', _(b'comment on the last revision')), |
2173 ], | 2174 ], |
2174 _(b'DREVSPEC... [OPTIONS]'), | 2175 _(b'DREVSPEC... [OPTIONS]'), |
2175 helpcategory=command.CATEGORY_IMPORT_EXPORT, | 2176 helpcategory=command.CATEGORY_IMPORT_EXPORT, |
2189 b'plan-changes', | 2190 b'plan-changes', |
2190 b'reclaim', | 2191 b'reclaim', |
2191 b'reject', | 2192 b'reject', |
2192 b'reopen', | 2193 b'reopen', |
2193 b'request-review', | 2194 b'request-review', |
2195 b'resign', | |
2194 ] | 2196 ] |
2195 flags = [n for n in transactions if opts.get(n.replace(b'-', b'_'))] | 2197 flags = [n for n in transactions if opts.get(n.replace(b'-', b'_'))] |
2196 if len(flags) > 1: | 2198 if len(flags) > 1: |
2197 raise error.Abort(_(b'%s cannot be used together') % b', '.join(flags)) | 2199 raise error.Abort(_(b'%s cannot be used together') % b', '.join(flags)) |
2198 | 2200 |