equal
deleted
inserted
replaced
14 |
14 |
15 # add+commit 'foo' |
15 # add+commit 'foo' |
16 repo[None].add(['foo']) |
16 repo[None].add(['foo']) |
17 repo.commit(text='commit1', date="0 0") |
17 repo.commit(text='commit1', date="0 0") |
18 |
18 |
19 print "workingfilectx.date =", repo[None]['foo'].date() |
19 if os.name == 'nt': |
|
20 d = repo[None]['foo'].date() |
|
21 print "workingfilectx.date = (%d, %d)" % (d[0], d[1]) |
|
22 else: |
|
23 print "workingfilectx.date =", repo[None]['foo'].date() |
20 |
24 |
21 # test memctx with non-ASCII commit message |
25 # test memctx with non-ASCII commit message |
22 |
26 |
23 def filectxfn(repo, memctx, path): |
27 def filectxfn(repo, memctx, path): |
24 return context.memfilectx(repo, "foo", "") |
28 return context.memfilectx(repo, "foo", "") |