comparison tests/test_single_dir_clone.py @ 813:f07bfd66db13

test_util: handle dispatch.dispatch() taking a request This was introduced in hg.08bfec2ef031
author Patrick Mezard <pmezard@gmail.com>
date Wed, 15 Jun 2011 14:44:14 +0200
parents e698be84c22d
children e9af7eba88db
comparison
equal deleted inserted replaced
812:8c7447b4b004 813:f07bfd66db13
2 2
3 import errno 3 import errno
4 import shutil 4 import shutil
5 import unittest 5 import unittest
6 6
7 from mercurial import dispatch
8 from mercurial import commands 7 from mercurial import commands
9 from mercurial import context 8 from mercurial import context
10 from mercurial import hg 9 from mercurial import hg
11 from mercurial import node 10 from mercurial import node
12 from mercurial import ui 11 from mercurial import ui
234 'branch_from_tag.svndump') 233 'branch_from_tag.svndump')
235 cmd = ['clone', '--layout=single', '--branch=flaf'] 234 cmd = ['clone', '--layout=single', '--branch=flaf']
236 if stupid: 235 if stupid:
237 cmd.append('--stupid') 236 cmd.append('--stupid')
238 cmd += [test_util.fileurl(self.repo_path), self.wc_path] 237 cmd += [test_util.fileurl(self.repo_path), self.wc_path]
239 dispatch.dispatch(cmd) 238 test_util.dispatch(cmd)
240 239
241 def file_callback(repo, memctx, path): 240 def file_callback(repo, memctx, path):
242 if path == 'adding_file': 241 if path == 'adding_file':
243 return context.memfilectx(path=path, 242 return context.memfilectx(path=path,
244 data='foo', 243 data='foo',