Mercurial > public > mercurial-scm > hg
diff tests/test-subrepo-deep-nested-change.t @ 24645:b39afa36006a
subrepo: precisely identify the missing subrepo spec file
It isn't obvious which file is the problem with deep subrepos, so provide the
path. Since the parsing is done with a ctx and not a subrepo object, it isn't
possible to display a path from the root subrepo. Therefore, the path shown is
relative to cwd.
There's no test coverage for the first abort, and I couldn't figure out how to
trigger it, but it is changed for consistency.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 05 Apr 2015 15:08:55 -0400 |
parents | 582cfcc843c7 |
children | 41cd8171e58f |
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t Sun Apr 05 12:12:02 2015 -0700 +++ b/tests/test-subrepo-deep-nested-change.t Sun Apr 05 15:08:55 2015 -0400 @@ -141,9 +141,14 @@ $ hg status -S $ hg remove sub1/sub2/folder/test.txt $ hg remove sub1/.hgsubstate + $ mv sub1/.hgsub sub1/x.hgsub $ hg status -S + warning: subrepo spec file 'sub1/.hgsub' not found (glob) R sub1/.hgsubstate R sub1/sub2/folder/test.txt + ! sub1/.hgsub + ? sub1/x.hgsub + $ mv sub1/x.hgsub sub1/.hgsub $ hg update -Cq $ touch sub1/foo $ hg forget sub1/sub2/folder/test.txt