Patchwork D3168: tests: enter full hex hash in plain text in bundle part

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 8:55 p.m.
Message ID <differential-rev-PHID-DREV-j4z7luyrxylsufesfxtv-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30462/
State Superseded
Headers show

Comments

phabricator - April 6, 2018, 8:55 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We were looking it up be prefix by repo.__getitem__, which I'm about
  to drop support for. It's easiest to just include the full hash in
  plain text.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3168

AFFECTED FILES
  tests/test-bundle2-exchange.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-bundle2-exchange.t b/tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t
+++ b/tests/test-bundle2-exchange.t
@@ -787,7 +787,7 @@ 
   >     enc = pushkey.encode
   >     part = bundler.newpart('pushkey')
   >     part.addparam('namespace', enc('phases'))
-  >     part.addparam('key', enc(pushop.repo['cd010b8cd998'].hex()))
+  >     part.addparam('key', enc('cd010b8cd998f3981a5a8115f94f8da4ab506089'))
   >     part.addparam('old', enc(str(0))) # successful update
   >     part.addparam('new', enc(str(0)))
   >     def fail(pushop, exc):