Mercurial > hg-stable
diff tests/test-globalopts.out @ 6150:aafdea37f796
Infer a --repository argument from command arguments when reasonable.
In particular: if invoked without -R from a CWD not inside a repo, having been
passed one or more file paths as command arguments, where the nearest enclosing
repo of all of those paths is the same, quietly infer a -R option for that repo.
Otherwise abort with an error message as before.
author | Jesse Glick <jesse.glick@sun.com> |
---|---|
date | Fri, 25 Jan 2008 04:11:32 -0500 |
parents | 2dd202a6e15b |
children | 55ba3bc5b8fd |
line wrap: on
line diff
--- a/tests/test-globalopts.out Tue Feb 19 10:53:40 2008 -0800 +++ b/tests/test-globalopts.out Fri Jan 25 04:11:32 2008 -0500 @@ -24,6 +24,12 @@ date: Thu Jan 01 00:00:01 1970 +0000 summary: b +%% implicit -R +0: a +0: a +abort: There is no Mercurial repository here (.hg not found)! +abort: a/a not under root +abort: There is no Mercurial repository here (.hg not found)! %% abbrev of long option changeset: 1:b6c483daf290 tag: tip