Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-missing.t @ 25769:2538b87660be
subrepo: use repo.pathto instead of util.pathto to simplify invocation
This centralization into 'repo.pathto()' should reduce the cost of vfs
migration around 'getcwd()' and so on in the future.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 10 Jul 2015 00:59:51 +0900 |
parents | f1d46075b13a |
children | a48a7c2d1fea |
line wrap: on
line diff
--- a/tests/test-subrepo-missing.t Fri Jul 10 00:59:51 2015 +0900 +++ b/tests/test-subrepo-missing.t Fri Jul 10 00:59:51 2015 +0900 @@ -23,8 +23,8 @@ $ cp .hgsubstate .hgsubstate.old >>> file('.hgsubstate', 'wb').write('\ninvalid') - $ hg st --subrepos - abort: invalid subrepository revision specifier in '.hgsubstate' line 2 + $ hg st --subrepos --cwd $TESTTMP -R $TESTTMP/repo + abort: invalid subrepository revision specifier in 'repo/.hgsubstate' line 2 (glob) [255] $ mv .hgsubstate.old .hgsubstate @@ -44,9 +44,9 @@ delete .hgsub and update $ rm .hgsub - $ hg up 0 - warning: subrepo spec file '.hgsub' not found - warning: subrepo spec file '.hgsub' not found + $ hg up 0 --cwd $TESTTMP -R $TESTTMP/repo + warning: subrepo spec file 'repo/.hgsub' not found (glob) + warning: subrepo spec file 'repo/.hgsub' not found (glob) 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg st warning: subrepo spec file '.hgsub' not found