[PATCH] dispatch: abort when specifying repository on norepo commands
Matt Mackall
mpm at selenic.com
Wed Dec 21 15:22:37 CST 2011
On Tue, 2011-12-20 at 20:59 +0100, Laurens Holst wrote:
> # HG changeset patch
> # User Laurens Holst <laurens.hg at grauw.nl>
> # Date 1324409721 -3600
> # Node ID c153131ce1fc1de11b8725785a51345b8dfa1930
> # Parent 21eb048edc19a9b78ae262d222c0de1f3ad6c4d2
> dispatch: abort when specifying repository on norepo commands
Not sure about this.
> For (norepo) commands where this option does not apply the option is
> currently
> ignored, which results in an unintended state that the user has to clean
> up. For
> example “hg init -R test” will not create a repo in directory “test” but
> in “.”.
Definitionally, I don't see why it should. This is why --cwd exists and
is distinct from -R. Consider:
$ hg -R hg st .
abort: . not under root
$ hg --cwd hg st .
? changes.txt
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list