diff tests/test_util.py @ 908:c4ee11a5d04c

pull: add a hgsubversion.unsafeskip option to omit unwanted revs
author Bryan O'Sullivan <bryano@fb.com>
date Wed, 16 May 2012 16:52:25 -0700
parents 04dfc23688b9
children 312f36a425f0
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -302,7 +302,7 @@ class TestBase(unittest.TestCase):
         return path
 
     def fetch(self, repo_path, subdir=None, stupid=False, layout='auto', startrev=0,
-              externals=None, noupdate=True, dest=None):
+              externals=None, noupdate=True, dest=None, rev=None):
         if layout == 'single':
             if subdir is None:
                 subdir = 'trunk'
@@ -323,6 +323,8 @@ class TestBase(unittest.TestCase):
             cmd.append('--stupid')
         if noupdate:
             cmd.append('--noupdate')
+        if rev is not None:
+            cmd.append('--rev=%s' % rev)
         if externals:
             cmd[:0] = ['--config', 'hgsubversion.externals=%s' % externals]