[PATCH 2 of 2 STABLE] tests: test updating with dirty largefiles in a subrepo

Matt Harbison matt_harbison at yahoo.com
Thu Jan 3 20:42:27 CST 2013


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1357264191 18000
# Branch stable
# Node ID 6bcabadb073d57b58eb655691f771d2ad9c3971b
# Parent  5da07921976bf249809cc0934c80c52025cf5e09
tests: test updating with dirty largefiles in a subrepo

diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -1677,6 +1677,21 @@
   5 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg -R ../update_on_clone status -S
 
+Check that a clean subrepo update replaces largefiles
+
+  $ echo "modified" > ../update_on_clone/subrepo/large.txt
+  $ hg -R ../update_on_clone update
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg -R ../update_on_clone status -S
+  M subrepo/large.txt
+  $ hg -R ../update_on_clone update -C
+  getting changed largefiles
+  1 largefiles updated, 0 removed
+  getting changed largefiles
+  0 largefiles updated, 0 removed
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg -R ../update_on_clone status -S
+
 Test archiving a revision that references a subrepo that is not yet
 cloned (see test-subrepo-recursion.t):
 


More information about the Mercurial-devel mailing list