[PATCH 4 of 5] largefiles: test lfconvert --tonormal

Greg Ward greg-hg at gerg.ca
Thu Oct 20 21:25:26 CDT 2011


# HG changeset patch
# User Greg Ward <greg at gerg.ca>
# Date 1319162465 14400
# Branch stable
# Node ID ef864f855fbc4ebaf42d4d277b531a742f38ab06
# Parent  70cc4a2b4f72b14905977b65e239b5ee12efa861
largefiles: test lfconvert --tonormal

diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -709,6 +709,23 @@
   $ cat .hglf/a-large-file .hglf/another-large-file
   2e000fa7e85759c7f4c254d4d9c33ef481e459a7
   3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
+
+Convert back to a normal (non-largefiles) repo
+  $ hg lfconvert --tonormal . ../normal-repo
+  initializing destination ../normal-repo
+  $ cd ../normal-repo
+  $ cat >> .hg/hgrc <<EOF
+  > [extensions]
+  > largefiles = !
+  > EOF
+  $ hg update
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg locate
+  a-large-file
+  another-large-file
+  $ [ -d .hg/largefiles ] && echo fail || echo pass
+  pass
+
+Cleanup
   $ cd ..
-  $ rm -rf bigfile-repo largefiles-repo
-
+  $ rm -rf bigfile-repo largefiles-repo normal-repo


More information about the Mercurial-devel mailing list