Patchwork win32mbcs: wrap util.split()

login
register
mail settings
Submitter Shun-ichi Goto
Date July 5, 2013, 12:30 a.m.
Message ID <008330e90abb838babba.1372984258@cirno.ad.taiyo.co.jp>
Download mbox | patch
Permalink /patch/1793/
State Accepted
Commit 41c06a02814e29e80f9d30c20bcfb61de7edfafa
Headers show

Comments

Shun-ichi Goto - July 5, 2013, 12:30 a.m.
# HG changeset patch
# User Shun-ichi GOTO <shunichi.goto@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().

Patch

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