Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24644:51930a7180bd | 24645:b39afa36006a |
---|---|
139 $ hg update -Cq | 139 $ hg update -Cq |
140 $ hg remove -I 're:.*.txt' sub1 | 140 $ hg remove -I 're:.*.txt' sub1 |
141 $ hg status -S | 141 $ hg status -S |
142 $ hg remove sub1/sub2/folder/test.txt | 142 $ hg remove sub1/sub2/folder/test.txt |
143 $ hg remove sub1/.hgsubstate | 143 $ hg remove sub1/.hgsubstate |
144 $ mv sub1/.hgsub sub1/x.hgsub | |
144 $ hg status -S | 145 $ hg status -S |
146 warning: subrepo spec file 'sub1/.hgsub' not found (glob) | |
145 R sub1/.hgsubstate | 147 R sub1/.hgsubstate |
146 R sub1/sub2/folder/test.txt | 148 R sub1/sub2/folder/test.txt |
149 ! sub1/.hgsub | |
150 ? sub1/x.hgsub | |
151 $ mv sub1/x.hgsub sub1/.hgsub | |
147 $ hg update -Cq | 152 $ hg update -Cq |
148 $ touch sub1/foo | 153 $ touch sub1/foo |
149 $ hg forget sub1/sub2/folder/test.txt | 154 $ hg forget sub1/sub2/folder/test.txt |
150 $ rm sub1/sub2/test.txt | 155 $ rm sub1/sub2/test.txt |
151 | 156 |