[PATCH] bookmarks: recognize the current bookmark when the local encoding isn't UTF-8
David Soria Parra
dsp at php.net
Thu Jun 9 20:17:20 CDT 2011
On 2011-06-08, LUO Zheng <xmuluo at gmail.com> wrote:
> diff -r 48ec0763afbb -r 4b424f28ab98 mercurial/bookmarks.py
> --- a/mercurial/bookmarks.py Tue Jun 07 17:02:54 2011 -0500
> +++ b/mercurial/bookmarks.py Wed Jun 08 21:25:18 2011 +0800
> @@ -114,7 +114,7 @@
> wlock =3D repo.wlock()
> try:
> file =3D repo.opener('bookmarks.current', 'w', atomictemp=3DTrue=
> )
> - file.write(mark)
> + file.write(encoding.fromlocal(mark))
> file.rename()
> finally:
> wlock.release()
thanks looks good to me.
More information about the Mercurial-devel
mailing list