tests/test-context.py
changeset 27056 01489fa0bbbe
parent 24180 d8e0c591781c
child 28735 5edde05ff58e
equal deleted inserted replaced
27055:5a0ffa245920 27056:01489fa0bbbe
    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", "")