[PATCH] Fix incorrect error code for `hg remove --after dirname`
Sergey
sergemp at mail.ru
Tue Oct 23 00:42:43 UTC 2012
On Mon, 22 Oct 2012 15:44:16 Matt Mackall wrote:
> Yes, but it's from this codepath. Your patch breaks this correct,
> documented behavior:
>
> $ hg rm --after nosuch ; echo $?
> nosuch: No such file or directory
> 0
You're right. I had not checked that case. Sorry...
> Here's the patch/test I came up with:
> [...]
> - $ cd ..
> +handling of untracked directories and missing files
> [...]
Just curious, have you intentionally dropped "cd .."?
Anyway, patch works great for me. Thank you!
--
Sergey
More information about the Mercurial-devel
mailing list