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

Bryan O'Sullivan bos at
Wed Sep 21 03:11:18 CDT 2005

On Tue, 2005-09-20 at 22:40 -0700, Rob Browning wrote:
> I just tried
>   hg --cwd ./debian push ../other-branch/debian
> and it failed:
>   pushing to ../other-branch/debian
>   abort: repository ../other-branch/debian/.hg not found!
> It looks like hg is changing to ./debian before interpreting the
> destination path since this worked:

Yes, this is the defined behaviour of --cwd.


More information about the Mercurial mailing list