Show More
@@ -1686,6 +1686,7 b' def phabread(ui, repo, spec, **opts):' | |||||
1686 | ], |
|
1686 | ], | |
1687 | _(b'DREVSPEC [OPTIONS]'), |
|
1687 | _(b'DREVSPEC [OPTIONS]'), | |
1688 | helpcategory=command.CATEGORY_IMPORT_EXPORT, |
|
1688 | helpcategory=command.CATEGORY_IMPORT_EXPORT, | |
|
1689 | optionalrepo=True, | |||
1689 | ) |
|
1690 | ) | |
1690 | def phabupdate(ui, repo, spec, **opts): |
|
1691 | def phabupdate(ui, repo, spec, **opts): | |
1691 | """update Differential Revision in batch |
|
1692 | """update Differential Revision in batch | |
@@ -1701,7 +1702,7 b' def phabupdate(ui, repo, spec, **opts):' | |||||
1701 | for f in flags: |
|
1702 | for f in flags: | |
1702 | actions.append({b'type': f, b'value': True}) |
|
1703 | actions.append({b'type': f, b'value': True}) | |
1703 |
|
1704 | |||
1704 |
drevs = querydrev( |
|
1705 | drevs = querydrev(ui, spec) | |
1705 | for i, drev in enumerate(drevs): |
|
1706 | for i, drev in enumerate(drevs): | |
1706 | if i + 1 == len(drevs) and opts.get(b'comment'): |
|
1707 | if i + 1 == len(drevs) and opts.get(b'comment'): | |
1707 | actions.append({b'type': b'comment', b'value': opts[b'comment']}) |
|
1708 | actions.append({b'type': b'comment', b'value': opts[b'comment']}) |
General Comments 0
You need to be logged in to leave comments.
Login now