[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

Result:

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>
<http://www.selenic.com/mercurial/bts/issue721>
____________________________________________________



More information about the Mercurial-devel mailing list