Show More
@@ -944,7 +944,7 b' It is still not set when there are unkno' | |||||
944 | $ hg debugdirstate --all --no-dates | grep '^ ' |
|
944 | $ hg debugdirstate --all --no-dates | grep '^ ' | |
945 | 0 -1 unset subdir |
|
945 | 0 -1 unset subdir | |
946 |
|
946 | |||
947 | Now the directory is eligible for caching, so its mtime is save in the dirstate |
|
947 | Now the directory is eligible for caching, so its mtime is saved in the dirstate | |
948 |
|
948 | |||
949 | $ rm subdir/unknown |
|
949 | $ rm subdir/unknown | |
950 | $ sleep 0.1 # ensure the kernelβs internal clock for mtimes has ticked |
|
950 | $ sleep 0.1 # ensure the kernelβs internal clock for mtimes has ticked | |
@@ -976,4 +976,35 b' Removing a node from the dirstate resets' | |||||
976 | $ hg status |
|
976 | $ hg status | |
977 | ? subdir/a |
|
977 | ? subdir/a | |
978 |
|
978 | |||
|
979 | Changing the hgignore rules makes us recompute the status (and rewrite the dirstate). | |||
|
980 | ||||
|
981 | $ rm subdir/a | |||
|
982 | $ mkdir another-subdir | |||
|
983 | $ touch another-subdir/something-else | |||
|
984 | ||||
|
985 | $ cat > "$TESTDIR"/extra-hgignore <<EOF | |||
|
986 | > something-else | |||
|
987 | > EOF | |||
|
988 | ||||
|
989 | $ hg status --config ui.ignore.global="$TESTDIR"/extra-hgignore | |||
|
990 | $ hg debugdirstate --all --no-dates | grep '^ ' | |||
|
991 | 0 -1 set subdir | |||
|
992 | ||||
|
993 | $ hg status | |||
|
994 | ? another-subdir/something-else | |||
|
995 | ||||
|
996 | $ hg debugdirstate --all --no-dates | grep '^ ' | |||
|
997 | 0 -1 unset subdir (known-bad-output !) | |||
|
998 | ||||
|
999 | For some reason the first [status] is not enough to save the updated | |||
|
1000 | directory mtime into the cache. The second invocation does it. | |||
|
1001 | The first call only clears the directory cache by marking the directories | |||
|
1002 | as "outdated", which seems like a bug. | |||
|
1003 | ||||
|
1004 | $ hg status | |||
|
1005 | ? another-subdir/something-else | |||
|
1006 | ||||
|
1007 | $ hg debugdirstate --all --no-dates | grep '^ ' | |||
|
1008 | 0 -1 set subdir | |||
|
1009 | ||||
979 | #endif |
|
1010 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now