Mercurial > hgsubversion
comparison tests/test_util.py @ 868:cc1c870f1758
test_util: pass repo_path to _add_svn_rev() explicitely
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 19 Apr 2012 18:29:29 +0200 |
parents | 50c13e01c7e3 |
children | db3a651494f9 |
comparison
equal
deleted
inserted
replaced
867:50c13e01c7e3 | 868:cc1c870f1758 |
---|---|
302 | 302 |
303 def _load_fixture_and_fetch(self, *args, **kwargs): | 303 def _load_fixture_and_fetch(self, *args, **kwargs): |
304 repo, repo_path = self.load_and_fetch(*args, **kwargs) | 304 repo, repo_path = self.load_and_fetch(*args, **kwargs) |
305 return repo | 305 return repo |
306 | 306 |
307 def _add_svn_rev(self, changes): | 307 def add_svn_rev(self, repo_path, changes): |
308 '''changes is a dict of filename -> contents''' | 308 '''changes is a dict of filename -> contents''' |
309 if self.svn_wc is None: | 309 if self.svn_wc is None: |
310 self.svn_wc = os.path.join(self.tmpdir, 'testsvn_wc') | 310 self.svn_wc = os.path.join(self.tmpdir, 'testsvn_wc') |
311 subprocess.call([ | 311 subprocess.call([ |
312 'svn', 'co', '-q', fileurl(self.repo_path), | 312 'svn', 'co', '-q', fileurl(repo_path), |
313 self.svn_wc | 313 self.svn_wc |
314 ], | 314 ], |
315 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 315 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
316 | 316 |
317 for filename, contents in changes.iteritems(): | 317 for filename, contents in changes.iteritems(): |