Mercurial > public > mercurial-scm > hg
diff tests/test-context.py @ 41397:0bd56c291359
cleanup: use p1() and p2() instead of parents()[0] and parents()[1]
We have had these methods on both contexts and dirstate for a long
time now.
Differential Revision: https://phab.mercurial-scm.org/D5706
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 25 Jan 2019 23:36:23 -0800 |
parents | a75896bf5ccb |
children | 4950ae4d034f |
line wrap: on
line diff
--- a/tests/test-context.py Mon Jan 21 15:29:14 2019 +0000 +++ b/tests/test-context.py Fri Jan 25 23:36:23 2019 -0800 @@ -63,7 +63,7 @@ # test performing a status def getfilectx(repo, memctx, f): - fctx = memctx.parents()[0][f] + fctx = memctx.p1()[f] data, flags = fctx.data(), fctx.flags() if f == b'foo': data += b'bar\n'