Problem with win32text

Shun-ichi GOTO shunichi.goto at gmail.com
Tue Mar 11 12:03:17 CDT 2008


2008/3/7, Michael Sperber <sperber at deinprogramm.de>:
>  - create a text file "baz" with CRLF encoding in foo
>  - hg add baz
>  - hg commit -m "initial" baz
>  - rm baz
>  - hg revert baz
>
>  After this, "hg status" tells me:
>
>  M baz
>
>  However, "hg diff" gives zero output.  After "hg commit", I get:

I cannot reproduce with your recipe, but we could reproduce when
first text file has LF line ending.
It is because "hg revert" does not update dirstate, so you need "hp up -C".
See also:  http://www.selenic.com/mercurial/bts/issue374

This issue somethimes happen by changing encode/decode setting in a middle
of use.
-- 
Shun-ichi GOTO


More information about the Mercurial mailing list