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

login
register
mail settings
Submitter Matt Harbison
Date Jan. 4, 2013, 2:42 a.m.
Message ID <6bcabadb073d57b58eb6.1357267347@Envy>
Download mbox | patch
Permalink /patch/389/
State Superseded
Headers show

Comments

Matt Harbison - Jan. 4, 2013, 2:42 a.m.
# 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

Patch

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):