tests/test-subrepo-git.t
changeset 26940 91786f20db83
parent 24964 fc92ccbbeb9a
child 26969 b54b520a24c2
--- a/tests/test-subrepo-git.t	Tue Nov 10 14:26:19 2015 -0800
+++ b/tests/test-subrepo-git.t	Tue Nov 10 14:29:13 2015 -0800
@@ -875,6 +875,16 @@
   $ hg status --subrepos
   ? s/barfoo
 
+revert moves orig files to the right place
+  $ echo 'bloop' > s/foobar
+  $ hg revert --all --verbose --config 'ui.origbackuppath=.hg/origbackups'
+  reverting subrepo ../gitroot
+  creating directory: $TESTTMP/tc/.hg/origbackups
+  saving current version of foobar as $TESTTMP/tc/.hg/origbackups/foobar.orig
+  $ ls .hg/origbackups
+  foobar.orig
+  $ rm -rf .hg/origbackups
+
 show file at specific revision
   $ cat > s/foobar << EOF
   > woop    woop