TortoiseHg PyQt 版の Pythonの方の listfile SJISダメ文字問題その5

ってことで、win32mbcsの修正が動いたようだ。

Google グループ

コマンドラインオプションのリポジトリ指定で、_earlygetopt()なる、非常に気になるものがありますね・・・

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -483,6 +483,8 @@ def _dispatch(ui, args):
     if cwd:
         os.chdir(cwd[-1])

+    ui.setconfig('ui', 'debug', str(bool('--debug' in args)))
+
     rpath = _earlygetopt(["-R", "--repository", "--repo"], args)
     path, lui = _getlocal(ui, rpath)