comparison tests/test-phabricator.t @ 46037:9624bf057c2a

phabricator: allow local revisions to be specified with `phabupdate` It's way easier and less error prone to specify a revset after importing a series than to manually type in a series of Differentials. Unlike most revision oriented commands, this requires the `--rev` option explicitly because the existing `DREVSPEC` doesn't need to have the leading 'D', and therefore the meaning is ambiguous. I wouldn't have a problem giving precedence to the local revnum, but `phabread` and `phabimport` also use DREVSPEC, and local revisions make no sense there. I would be fine with modifying that definition to require the leading 'D', but I'm not sure how many people are used to not specifying it. Differential Revision: https://phab.mercurial-scm.org/D9356
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 21 Nov 2020 00:10:36 -0500
parents 294aab57a5f3
children 466236e99eac
comparison
equal deleted inserted replaced
46036:8d54944eaeb0 46037:9624bf057c2a
588 phase: public 588 phase: public
589 user: test 589 user: test
590 date: Thu Jan 01 00:00:00 1970 +0000 590 date: Thu Jan 01 00:00:00 1970 +0000
591 summary: create beta for phabricator test 591 summary: create beta for phabricator test
592 592
593 phabupdate can convert from local revisions
594
595 $ hg phabupdate --reclaim D7917 -r '.: and not public()'
596 abort: cannot specify both DREVSPEC and --rev
597 [10]
598
599 $ hg phabupdate --reclaim -r '.: and not public()' --test-vcr "$VCR/phabupdate-revs.json"
600
593 Phabimport accepts multiple DREVSPECs 601 Phabimport accepts multiple DREVSPECs
594 602
595 $ hg rollback --config ui.rollback=True 603 $ hg rollback --config ui.rollback=True
596 repository tip rolled back to revision 1 (undo phabimport) 604 repository tip rolled back to revision 1 (undo phabimport)
597 $ hg phabimport --no-stack D7917 D7918 --test-vcr "$VCR/phabimport-multi-drev.json" 605 $ hg phabimport --no-stack D7917 D7918 --test-vcr "$VCR/phabimport-multi-drev.json"