diff tests/test-largefiles-misc.t @ 26944:ef5bab63af85

largefiles: specify where .orig files are kept This patch let's the user specify where .orig files are kept using the cmdutil.origpath function
author Christian Delahousse <cdelahousse@fb.com>
date Tue, 10 Nov 2015 15:08:56 -0800
parents 4b0fc75f9403
children b54b520a24c2
line wrap: on
line diff
--- a/tests/test-largefiles-misc.t	Tue Nov 10 14:52:54 2015 -0800
+++ b/tests/test-largefiles-misc.t	Tue Nov 10 15:08:56 2015 -0800
@@ -509,6 +509,18 @@
   $ hg revert anotherlarge
   $ hg st
   ? sub/anotherlarge.orig
+
+Test orig files go where we want them
+  $ echo moremore >> anotherlarge
+  $ hg revert anotherlarge -v --config 'ui.origbackuppath=.hg/origbackups'
+  creating directory: $TESTTMP/addrm2/.hg/origbackups/.hglf/sub
+  saving current version of ../.hglf/sub/anotherlarge as $TESTTMP/addrm2/.hg/origbackups/.hglf/sub/anotherlarge.orig
+  reverting ../.hglf/sub/anotherlarge (glob)
+  creating directory: $TESTTMP/addrm2/.hg/origbackups/sub
+  found 90c622cf65cebe75c5842f9136c459333faf392e in store
+  found 90c622cf65cebe75c5842f9136c459333faf392e in store
+  $ ls ../.hg/origbackups/sub
+  anotherlarge.orig
   $ cd ..
 
 Test glob logging from the root dir