a question about file renaming

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu Jul 10 04:25:49 CDT 2008


On Thu, Jul 10, 2008 at 10:41 AM, Manlio Perillo
<manlio.perillo at gmail.com> wrote:
> Hi.
>
> I have a small question about this use case:
>
> 1) Create a file named 'x' with content "x", add to repository and
>    commit
> 2) Rename file 'x' to 'y', create and add to repository a new file 'x'
>    with content "new x", commit
>
>
> Is this fully supported?

Think so. Just tested and could clone ok.

> The diff says:
>
> diff --git a/x b/x
> --- a/x
> +++ b/x
> @@ -1,1 +1,1 @@
> -x
> +new x
> diff --git a/x b/y
> copy from x
> copy to y

I've also imported this patch into mq and then qpushed it. Works fine too.

-parren


More information about the Mercurial mailing list