Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-deep-nested-change.t @ 23538:ccfb56450f21
addremove: add support for the -S flag
Git and svn subrepos are currently not supported. It doesn't look like git or
svn have these commands natively, so that's an area for a git or svn expert.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 24 Nov 2014 23:51:26 -0500 |
parents | f1b06a8aad42 |
children | cb42050f2dad |
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t Mon Nov 24 22:27:49 2014 -0500 +++ b/tests/test-subrepo-deep-nested-change.t Mon Nov 24 23:51:26 2014 -0500 @@ -128,11 +128,32 @@ R sub1/.hgsubstate R sub1/sub2/folder/test.txt $ hg update -Cq + $ touch sub1/foo + $ hg forget sub1/sub2/folder/test.txt + $ rm sub1/sub2/test.txt + +Test relative path printing + subrepos + $ mkdir -p foo/bar + $ cd foo + $ touch bar/abc + $ hg addremove -S .. + adding ../sub1/sub2/folder/test.txt (glob) + removing ../sub1/sub2/test.txt (glob) + adding ../sub1/foo (glob) + adding bar/abc (glob) + $ cd .. + $ hg status -S + A foo/bar/abc + A sub1/foo + R sub1/sub2/test.txt + $ hg update -Cq $ rm sub1/sub2/folder/test.txt $ rm sub1/sub2/test.txt $ hg ci -ASm "remove test.txt" removing sub1/sub2/folder/test.txt (glob) removing sub1/sub2/test.txt (glob) + adding sub1/foo (glob) + adding foo/bar/abc committing subrepository sub1 committing subrepository sub1/sub2 (glob) $ hg rollback -q