Patchwork D3448: tests: pass parent revision as integer to repo[x] in test-context-metadata.t

login
register
mail settings
Submitter phabricator
Date May 7, 2018, 12:54 p.m.
Message ID <d95074a01dc0958e8d0a1c5728e06869@localhost.localdomain>
Download mbox | patch
Permalink /patch/31293/
State Not Applicable
Headers show

Comments

phabricator - May 7, 2018, 12:54 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8327fd79adf8: tests: pass parent revision as integer to repo[x] in test-context-metadata.t (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3448?vs=8465&id=8474

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

AFFECTED FILES
  tests/test-context-metadata.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-context-metadata.t b/tests/test-context-metadata.t
--- a/tests/test-context-metadata.t
+++ b/tests/test-context-metadata.t
@@ -23,7 +23,7 @@ 
   >         old = repo[b'.']
   >         kwargs = dict(s.split(b'=', 1) for s in arg.split(b';'))
   >         if 'parents' in kwargs:
-  >             kwargs[b'parents'] = kwargs[b'parents'].split(b',')
+  >             kwargs[b'parents'] = map(int, kwargs[b'parents'].split(b','))
   >         new = context.metadataonlyctx(repo, old,
   >                                       **pycompat.strkwargs(kwargs))
   >         new.commit()