tests/test-largefiles-update.t
branchstable
changeset 23694 97eb62b0f4a9
parent 23383 7f8d27e1f862
child 23696 1265a3a71d75
--- a/tests/test-largefiles-update.t	Mon Dec 29 14:27:02 2014 -0600
+++ b/tests/test-largefiles-update.t	Wed Dec 31 14:45:02 2014 +0100
@@ -25,6 +25,21 @@
   $ hg commit -m '#2'
   created new head
 
+Test that lfdirstate keeps track of last modification of largefiles and
+prevents unnecessary hashing of content - also after linear/noop update
+
+  $ sleep 1
+  $ hg st
+  $ hg debugdirstate --large --nodate
+  n 644          7 large1
+  n 644         13 large2
+  $ hg up
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg debugdirstate --large --nodate
+  n   0         -1 large1
+  n   0         -1 large2
+BAD:            ^^
+
 Test that "hg merge" updates largefiles from "other" correctly
 
 (getting largefiles from "other" normally)