diff tests/test-subrepo-deep-nested-change.t @ 23837:2b79d124a12f

largefiles: enable subrepo support for forget
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 11 Jan 2015 23:20:51 -0500
parents 164915e8ef7b
children 5ce8dcd05dc4
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t	Tue Jan 13 15:07:08 2015 -0800
+++ b/tests/test-subrepo-deep-nested-change.t	Sun Jan 11 23:20:51 2015 -0500
@@ -323,4 +323,25 @@
   $ hg --config extensions.largefiles= archive -S -I 'sub/sub2/.hglf/large.bin' ../archive_lf
   $ find ../archive_lf 2> /dev/null | sort
 
+  $ cat >> $HGRCPATH <<EOF
+  > [extensions]
+  > largefiles=
+  > EOF
+
+Test forget through a deep subrepo with the largefiles extension, both a
+largefile and a normal file.  Then a largefile that hasn't been committed yet.
+  $ touch sub1/sub2/untracked.txt
+  $ hg forget sub1/sub2/large.bin sub1/sub2/test.txt sub1/sub2/untracked.txt
+  not removing sub1/sub2/untracked.txt: file is already untracked (glob)
+  [1]
+  $ hg add -v --large -R sub1/sub2 sub1/sub2/untracked.txt
+  adding sub1/sub2/untracked.txt as a largefile (glob)
+  $ hg forget -v sub1/sub2/untracked.txt
+  removing sub1/sub2/untracked.txt (glob)
+  $ hg status -S
+  R sub1/sub2/large.bin
+  R sub1/sub2/test.txt
+  ? foo/bar/abc
+  ? sub1/sub2/untracked.txt
+
   $ cd ..