[PATCH] win32mbcs: wrap util.split()

Shun-ichi Goto shunichi.goto at gmail.com
Thu Jul 4 19:30:58 CDT 2013


# HG changeset patch
# User Shun-ichi GOTO <shunichi.goto at gmail.com>
# Date 1372946759 -32400
#      Thu Jul 04 23:05:59 2013 +0900
# Node ID 008330e90abb838babbaf0f4550aa365906d58c8
# Parent  77440de177f799f9f3bd6236c5b45fb8e15687e7
win32mbcs: wrap util.split()

util.split() should be wrapped because it is an alias of unsafe
os.path.split().

diff -r 77440de177f7 -r 008330e90abb hgext/win32mbcs.py
--- a/hgext/win32mbcs.py	Wed Jun 26 23:12:55 2013 +0200
+++ b/hgext/win32mbcs.py	Thu Jul 04 23:05:59 2013 +0900
@@ -140,7 +140,8 @@
  os.path.normpath os.makedirs
  mercurial.util.endswithsep mercurial.util.splitpath mercurial.util.checkcase
  mercurial.util.fspath mercurial.util.pconvert mercurial.util.normpath
- mercurial.util.checkwinfilename mercurial.util.checkosfilename'''
+ mercurial.util.checkwinfilename mercurial.util.checkosfilename
+ mercurial.util.split'''
 
 # These functions are required to be called with local encoded string
 # because they expects argument is local encoded string and cause


More information about the Mercurial-devel mailing list