comparison tests/test_util.py @ 917:6918f60d0e28

Merge hg 2.3 fixes from bos.
author Augie Fackler <raf@durin42.com>
date Sat, 21 Jul 2012 15:31:34 -0500
parents 772280aed751 7e9d805a0e1f
children 847953806c77
comparison
equal deleted inserted replaced
913:9fff2b8217b6 917:6918f60d0e28
159 u.setconfig('hgsubversion', 'layout', layout) 159 u.setconfig('hgsubversion', 'layout', layout)
160 u.setconfig('hgsubversion', 'startrev', startrev) 160 u.setconfig('hgsubversion', 'startrev', startrev)
161 return u 161 return u
162 162
163 def dispatch(cmd): 163 def dispatch(cmd):
164 try: 164 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd)
165 req = dispatchmod.request(cmd) 165 dispatchmod.dispatch(cmd)
166 dispatchmod.dispatch(req)
167 except AttributeError, e:
168 dispatchmod.dispatch(cmd)
169 166
170 def rmtree(path): 167 def rmtree(path):
171 # Read-only files cannot be removed under Windows 168 # Read-only files cannot be removed under Windows
172 for root, dirs, files in os.walk(path): 169 for root, dirs, files in os.walk(path):
173 for f in files: 170 for f in files: