Index: tests/gclient_scm_test.py |
diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py |
index 465d172fd90a33e1caa4272c102d329b1390af89..fa16be676b1e91ee538ef723f75b2f78c7cedf4c 100755 |
--- a/tests/gclient_scm_test.py |
+++ b/tests/gclient_scm_test.py |
@@ -104,9 +104,11 @@ class SVNWrapperTestCase(BaseTestCase): |
'GetCheckoutRoot', |
'GetRevisionDate', |
'GetUsableRev', |
+ 'Svnversion', |
'RunCommand', |
'cleanup', |
'diff', |
+ 'name', |
'nag_max', |
'nag_timer', |
'pack', |
@@ -198,6 +200,9 @@ class SVNWrapperTestCase(BaseTestCase): |
cwd=self.root_dir, |
file_list=files_list) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -228,6 +233,8 @@ class SVNWrapperTestCase(BaseTestCase): |
cwd=self.root_dir, |
file_list=files_list) |
gclient_scm.gclient_utils.rmtree(self.base_path) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -352,6 +359,8 @@ class SVNWrapperTestCase(BaseTestCase): |
['checkout', self.url, self.base_path, '--force', '--ignore-externals'], |
cwd=self.root_dir, |
file_list=files_list) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -386,6 +395,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.scm.SVN.Capture(['--version', '--quiet'], None |
).AndReturn('1.5.1') |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
additional_args = [] |
if options.manually_grab_svn_rev: |
additional_args = ['--revision', str(file_info['Revision'])] |
@@ -425,6 +437,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.scm.SVN._CaptureInfo([file_info['URL']], None |
).AndReturn(file_info) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
files_list = [] |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
@@ -466,6 +481,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.os.path.islink(join(self.base_path, 'dir')).AndReturn(False) |
gclient_scm.gclient_utils.rmtree(join(self.base_path, 'dir')) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -515,6 +533,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.scm.SVN._CaptureInfo([file_info['URL']], None |
).AndReturn(file_info) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -585,6 +606,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.scm.SVN._CaptureInfo([file_info['URL']], None |
).AndReturn(file_info) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -618,6 +642,9 @@ class SVNWrapperTestCase(BaseTestCase): |
gclient_scm.scm.SVN._CaptureInfo([file_info['URL']], None |
).AndReturn(file_info) |
+ gclient_scm.scm.SVN._CaptureInfo([], self.base_path+'/.' |
+ ).AndReturn({'Revision': 100}) |
+ |
self.mox.ReplayAll() |
scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir, |
relpath=self.relpath) |
@@ -799,6 +826,7 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): |
'cache_locks', |
'cleanup', |
'diff', |
+ 'name', |
'nag_max', |
'nag_timer', |
'pack', |