Mercurial > hgsubversion
comparison tests/test_push_command.py @ 241:4950b18cf949
Move fetch_command.fetch_revisions() to svncommands.pull().
| author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
|---|---|
| date | Wed, 08 Apr 2009 17:49:30 +0200 |
| parents | 06eb60f9a026 |
| children | 06130689a2c8 |
comparison
equal
deleted
inserted
replaced
| 240:1aa1d2d406d9 | 241:4950b18cf949 |
|---|---|
| 7 from mercurial import hg | 7 from mercurial import hg |
| 8 from mercurial import node | 8 from mercurial import node |
| 9 from mercurial import ui | 9 from mercurial import ui |
| 10 from mercurial import revlog | 10 from mercurial import revlog |
| 11 | 11 |
| 12 import fetch_command | 12 import svncommands |
| 13 import push_cmd | 13 import push_cmd |
| 14 import test_util | 14 import test_util |
| 15 import time | 15 import time |
| 16 | 16 |
| 17 | 17 |
| 36 assert False, ('You appear to be running your own svnserve!' | 36 assert False, ('You appear to be running your own svnserve!' |
| 37 ' You can probably ignore this test failure.') | 37 ' You can probably ignore this test failure.') |
| 38 args = ['svnserve', '-d', '--foreground', '-r', self.repo_path] | 38 args = ['svnserve', '-d', '--foreground', '-r', self.repo_path] |
| 39 self.svnserve_pid = subprocess.Popen(args).pid | 39 self.svnserve_pid = subprocess.Popen(args).pid |
| 40 time.sleep(2) | 40 time.sleep(2) |
| 41 fetch_command.fetch_revisions(ui.ui(), | 41 svncommands.pull(ui.ui(), svn_url='svn://localhost/', |
| 42 svn_url='svn://localhost/', | 42 hg_repo_path=self.wc_path) |
| 43 hg_repo_path=self.wc_path) | |
| 44 | 43 |
| 45 def tearDown(self): | 44 def tearDown(self): |
| 46 os.system('kill -9 %d' % self.svnserve_pid) | 45 os.system('kill -9 %d' % self.svnserve_pid) |
| 47 test_util.TestBase.tearDown(self) | 46 test_util.TestBase.tearDown(self) |
| 48 | 47 |
