[issue721] hg rename mishandles directories (badly)

Jonathan Shapiro mercurial-bugs at selenic.com
Sun Sep 2 13:07:23 CDT 2007

New submission from Jonathan Shapiro <shap at eros-os.com>:

Repeat by:

1. Create an initial repo with a single file fred/fred/barney.txt.
2. From top of workspace, hg rename fred/fred to fred


fred/fred/barney.txt: not overwriting - file exists

At best, this is deeply counterintuitive and contrary to documentation, but it
suggests that directory rename is being mishandled. What I *suspect* is
happening is that HG is enumerating the last argument "fred" and the rest goes
south from there. I have not looked at the code, but we have a very similar
logic error in OpenCM.

ThomasAH seems to think this is a bug.

messages: 3950
nosy: shap
priority: bug
status: unread
title: hg rename mishandles directories (badly)

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list