Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6143:5b159ebb19cf | 6150:aafdea37f796 |
---|---|
22 tag: tip | 22 tag: tip |
23 user: test | 23 user: test |
24 date: Thu Jan 01 00:00:01 1970 +0000 | 24 date: Thu Jan 01 00:00:01 1970 +0000 |
25 summary: b | 25 summary: b |
26 | 26 |
27 %% implicit -R | |
28 0: a | |
29 0: a | |
30 abort: There is no Mercurial repository here (.hg not found)! | |
31 abort: a/a not under root | |
32 abort: There is no Mercurial repository here (.hg not found)! | |
27 %% abbrev of long option | 33 %% abbrev of long option |
28 changeset: 1:b6c483daf290 | 34 changeset: 1:b6c483daf290 |
29 tag: tip | 35 tag: tip |
30 parent: -1:000000000000 | 36 parent: -1:000000000000 |
31 user: test | 37 user: test |