Should "hg --cwd DIR push RELATIVE" treat RELATIVE wrt DIR?

Rob Browning rlb at
Wed Sep 21 01:05:21 CDT 2005

Rob Browning <rlb at> writes:

> It looks like hg is changing to ./debian before interpreting the
> destination path since this worked:
>   hg --cwd ./debian push ../../other-branch/debian
> I wasn't sure if this was intended behavior.  It does mean that you
> can't use tab-completion for a relative destination when using --cwd.

Hmm, though given debian/foo, I'm not sure I'd expect

  hg --cwd debian revert debian/foo

to work, rather than

  hg --cwd debian revert foo

I suppose it's simple and clear for "hg --cwd  foo ..." to just mean
"(cd foo && hg ...)".

Rob Browning
rlb and; previously
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4

More information about the Mercurial mailing list