Mercurial > hg
comparison tests/test-phabricator.t @ 44169: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 |
comparison
equal
deleted
inserted
replaced
44157:624fe53ce1e7 | 44169:5d85e9ddc7b9 |
---|---|
137 | 137 |
138 Phabsending a skipped commit: | 138 Phabsending a skipped commit: |
139 $ hg phabsend --no-amend -r . --test-vcr "$VCR/phabsend-skipped.json" | 139 $ hg phabsend --no-amend -r . --test-vcr "$VCR/phabsend-skipped.json" |
140 D7919 - skipped - 1849d7828727: create comment for phabricator test | 140 D7919 - skipped - 1849d7828727: create comment for phabricator test |
141 | 141 |
142 Phabesending a new binary, a modified binary, and a removed binary | |
143 | |
144 >>> open('bin', 'wb').write(b'\0a') and None | |
145 $ hg ci -Am 'add binary' | |
146 adding bin | |
147 >>> open('bin', 'wb').write(b'\0b') and None | |
148 $ hg ci -m 'modify binary' | |
149 $ hg rm bin | |
150 $ hg ci -m 'remove binary' | |
151 $ hg phabsend -r .~2:: --test-vcr "$VCR/phabsend-binary.json" | |
152 uploading bin@aa24a81f55de | |
153 D8007 - created - aa24a81f55de: add binary | |
154 uploading bin@d8d62a881b54 | |
155 D8008 - created - d8d62a881b54: modify binary | |
156 D8009 - created - af55645b2e29: remove binary | |
157 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/aa24a81f55de-a3a0cf24-phabsend.hg | |
158 | |
142 Phabreading a DREV with a local:commits time as a string: | 159 Phabreading a DREV with a local:commits time as a string: |
143 $ hg phabread --test-vcr "$VCR/phabread-str-time.json" D1285 | 160 $ hg phabread --test-vcr "$VCR/phabread-str-time.json" D1285 |
144 # HG changeset patch | 161 # HG changeset patch |
145 # User Pulkit Goyal <7895pulkit@gmail.com> | 162 # User Pulkit Goyal <7895pulkit@gmail.com> |
146 # Date 1509404054 -19800 | 163 # Date 1509404054 -19800 |