[PATCH] Fix incorrect error code for `hg remove --after dirname`
sergemp at mail.ru
Mon Oct 22 19:42:43 CDT 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
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!
More information about the Mercurial-devel