# HG changeset patch # User Greg Ward # Date 1319162465 14400 # Node ID bc4d8804855c1ba9f2b438b5954a2689a6e0348c # Parent 1e6fcce4aab3c60a75dcd0d7d9ff7baeed06d217 largefiles: test lfconvert --tonormal diff -r 1e6fcce4aab3 -r bc4d8804855c tests/test-largefiles.t --- a/tests/test-largefiles.t Thu Oct 20 22:24:24 2011 -0400 +++ b/tests/test-largefiles.t Thu Oct 20 22:01:05 2011 -0400 @@ -709,9 +709,26 @@ $ 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 < [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 Clone a local repository owned by another user We have to simulate that here by setting $HOME and removing write permissions $ ORIGHOME="$HOME"