Mercurial > hg-stable
comparison tests/test-dirstate.t @ 11888:2bd699886ffc
tests: combine test-dirstate-future.t
into test-dirstate.t
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 15 Aug 2010 18:25:29 +0200 |
parents | 76818b28ce98 |
children | 4fee1fd3de9a |
comparison
equal
deleted
inserted
replaced
11887:76818b28ce98 | 11888:2bd699886ffc |
---|---|
1 Test dirstate._dirs refcounting: | 1 ------ Test dirstate._dirs refcounting |
2 | 2 |
3 $ hg init t | 3 $ hg init t |
4 $ cd t | 4 $ cd t |
5 $ mkdir -p a/b/c/d | 5 $ mkdir -p a/b/c/d |
6 $ touch a/b/c/d/x | 6 $ touch a/b/c/d/x |
12 adding a/b/c/d/z | 12 adding a/b/c/d/z |
13 $ hg mv a z | 13 $ hg mv a z |
14 moving a/b/c/d/x to z/b/c/d/x | 14 moving a/b/c/d/x to z/b/c/d/x |
15 moving a/b/c/d/y to z/b/c/d/y | 15 moving a/b/c/d/y to z/b/c/d/y |
16 moving a/b/c/d/z to z/b/c/d/z | 16 moving a/b/c/d/z to z/b/c/d/z |
17 $ cd .. | |
17 | 18 |
19 ------ issue1790 | |
20 | |
21 Prepare test repo: | |
22 | |
23 $ hg init u | |
24 $ cd u | |
25 $ echo a > a | |
26 $ hg add | |
27 adding a | |
28 $ hg ci -m1 | |
29 | |
30 Set mtime of a into the future: | |
31 | |
32 $ touch -t 202101011200 a | |
33 | |
34 Status must not set a's entry to unset (issue1790): | |
35 | |
36 $ hg status | |
37 $ hg debugstate | |
38 n 644 2 2021-01-01 12:00:00 a | |
39 $ cd .. | |
40 |