Mercurial > public > mercurial-scm > hg-stable
diff tests/test-phabricator.t @ 44141:5d85e9ddc7b9 stable
phabricator: fix a crash when submitting binaries (issue6260)
I think this assumed that `p1()` returned the changectx instead of the previous
filelog entry.
Differential Revision: https://phab.mercurial-scm.org/D8010
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 25 Jan 2020 01:06:46 -0500 |
parents | ff396501e841 |
children | d1177d39012e |
line wrap: on
line diff
--- a/tests/test-phabricator.t Wed Jan 22 20:01:38 2020 -0800 +++ b/tests/test-phabricator.t Sat Jan 25 01:06:46 2020 -0500 @@ -139,6 +139,23 @@ $ hg phabsend --no-amend -r . --test-vcr "$VCR/phabsend-skipped.json" D7919 - skipped - 1849d7828727: create comment for phabricator test +Phabesending a new binary, a modified binary, and a removed binary + + >>> open('bin', 'wb').write(b'\0a') and None + $ hg ci -Am 'add binary' + adding bin + >>> open('bin', 'wb').write(b'\0b') and None + $ hg ci -m 'modify binary' + $ hg rm bin + $ hg ci -m 'remove binary' + $ hg phabsend -r .~2:: --test-vcr "$VCR/phabsend-binary.json" + uploading bin@aa24a81f55de + D8007 - created - aa24a81f55de: add binary + uploading bin@d8d62a881b54 + D8008 - created - d8d62a881b54: modify binary + D8009 - created - af55645b2e29: remove binary + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/aa24a81f55de-a3a0cf24-phabsend.hg + Phabreading a DREV with a local:commits time as a string: $ hg phabread --test-vcr "$VCR/phabread-str-time.json" D1285 # HG changeset patch