Mercurial > hg
comparison tests/test-context.py @ 11303:a1aad8333864
move working dir/dirstate methods from localrepo to workingctx
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 07 Jun 2010 20:03:32 +0200 |
parents | 3b76321aa0de |
children | bd23d5f28bbb |
comparison
equal
deleted
inserted
replaced
11302:e1dde7363601 | 11303:a1aad8333864 |
---|---|
11 f.write('foo\n') | 11 f.write('foo\n') |
12 f.close() | 12 f.close() |
13 os.utime('foo', (1000, 1000)) | 13 os.utime('foo', (1000, 1000)) |
14 | 14 |
15 # add+commit 'foo' | 15 # add+commit 'foo' |
16 repo.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 print "workingfilectx.date =", repo[None]['foo'].date() |