Submitter | phabricator |
---|---|
Date | Aug. 15, 2017, 5:25 p.m. |
Message ID | <8f01ec22c6192a3edda14829812192a5@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/23024/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/tests/test-context.py b/tests/test-context.py --- a/tests/test-context.py +++ b/tests/test-context.py @@ -24,11 +24,10 @@ repo[None].add(['foo']) repo.commit(text='commit1', date="0 0") +d = repo[None]['foo'].date() if os.name == 'nt': - d = repo[None]['foo'].date() - print("workingfilectx.date = (%d, %d)" % (d[0], d[1])) -else: - print("workingfilectx.date =", repo[None]['foo'].date()) + d = d[:2] +print("workingfilectx.date = (%d, %d)" % d) # test memctx with non-ASCII commit message