largefiles: test "update --check" stable
authorGreg Ward <greg@gerg.ca>
Mon, 24 Oct 2011 21:33:23 -0400
branchstable
changeset 15365 ca1412c15efe
parent 15364 572c22c88be6
child 15366 06b8db3f25c6
largefiles: test "update --check" It works fine; I'm just getting the test coverage up.
tests/test-largefiles.t
--- a/tests/test-largefiles.t	Wed Oct 26 12:56:27 2011 -0500
+++ b/tests/test-largefiles.t	Mon Oct 24 21:33:23 2011 -0400
@@ -601,6 +601,11 @@
   $ cat sub/large4
   large4-modified-again
 
+"update --check" refuses to update with uncommitted changes.
+  $ hg update --check 8
+  abort: uncommitted local changes
+  [255]
+
 "update --clean" leaves correct largefiles in working copy.
 
   $ hg update --clean 
@@ -618,6 +623,16 @@
   $ cat sub2/large7
   large7
 
+Now "update check" is happy.
+  $ hg update --check 8
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  getting changed largefiles
+  1 largefiles updated, 0 removed
+  $ hg update --check
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  getting changed largefiles
+  1 largefiles updated, 0 removed
+
 "verify --large" actaully verifies largefiles
 
   $ hg verify --large