[PATCH hg-bfiles] Adapt to Mercurial 1.8: util.unlink() is now util.unlinkpath()
Klaus Koch
kuk42 at gmx.net
Tue Feb 1 13:22:37 CST 2011
On Jan 31, 2011, at 10:44 AM, Martin Geisler wrote:
> Adrian Buehlmann <adrian at cadifra.com> writes:
>> I've seen other extensions being affected too: snap (maybe Martin can
>> give Klaus Koch a heads-up?), pbranch (ping parren).
>
> Sure!
>
> Klaus: Mercurial 1.8 changes util.unlink so that it no longer removes
> empty directories. Use util.unlinkpath if you want the old behavior:
>
> See Mercurial changes:
>
> 6052bbc7aabd 2011-01-11 reintroduces util.unlink, for POSIX and Windows.
> 6bf39d88c857 2011-01-02 rename util.unlink to unlinkpath
Thanks for the hint :)
It should be fine since the two cases where util.unlink is used do not require the old behavior. My tests are clean as well :)
Klaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110201/b46c1640/attachment.htm>
More information about the Mercurial-devel
mailing list