Mercurial > hgsubversion
comparison tests/test_util.py @ 916:7e9d805a0e1f
tests: fix regressions introduced by peer classes in hg 2.3
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Thu, 19 Jul 2012 16:01:17 -0700 |
parents | 312f36a425f0 |
children | 6918f60d0e28 |
comparison
equal
deleted
inserted
replaced
915:d6c47c33f6a2 | 916:7e9d805a0e1f |
---|---|
158 u.setconfig('hgsubversion', 'layout', layout) | 158 u.setconfig('hgsubversion', 'layout', layout) |
159 u.setconfig('hgsubversion', 'startrev', startrev) | 159 u.setconfig('hgsubversion', 'startrev', startrev) |
160 return u | 160 return u |
161 | 161 |
162 def dispatch(cmd): | 162 def dispatch(cmd): |
163 try: | 163 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd) |
164 req = dispatchmod.request(cmd) | 164 dispatchmod.dispatch(cmd) |
165 dispatchmod.dispatch(req) | |
166 except AttributeError, e: | |
167 dispatchmod.dispatch(cmd) | |
168 | 165 |
169 def rmtree(path): | 166 def rmtree(path): |
170 # Read-only files cannot be removed under Windows | 167 # Read-only files cannot be removed under Windows |
171 for root, dirs, files in os.walk(path): | 168 for root, dirs, files in os.walk(path): |
172 for f in files: | 169 for f in files: |