| Index: tests/gclient_test.py
|
| ===================================================================
|
| --- tests/gclient_test.py (revision 15777)
|
| +++ tests/gclient_test.py (working copy)
|
| @@ -1145,7 +1145,7 @@
|
| base_path = os.path.join(self.root_dir, self.relpath)
|
| gclient.os.path.isdir = self.mox.CreateMockAnything()
|
| gclient.os.path.isdir(base_path).AndReturn(True)
|
| - gclient.CaptureSVNStatus(options, base_path).AndReturn([])
|
| + gclient.CaptureSVNStatus(base_path).AndReturn([])
|
|
|
| self.mox.ReplayAll()
|
| scm = gclient.SCMWrapper(url=self.url, root_dir=self.root_dir,
|
| @@ -1164,11 +1164,11 @@
|
| gclient.FileStatus('a', 'M', ' ', ' ', ' '),
|
| gclient.FileStatus('b', 'A', ' ', ' ', ' '),
|
| ]
|
| - gclient.CaptureSVNStatus(options, base_path).AndReturn(items)
|
| + gclient.CaptureSVNStatus(base_path).AndReturn(items)
|
|
|
| print >>options.stdout, os.path.join(base_path, 'a')
|
| print >>options.stdout, os.path.join(base_path, 'b')
|
| - gclient.RunSVN(options, ['revert', 'a', 'b'], base_path)
|
| + gclient.RunSVN(['revert', 'a', 'b'], base_path)
|
|
|
| self.mox.ReplayAll()
|
| scm = gclient.SCMWrapper(url=self.url, root_dir=self.root_dir,
|
| @@ -1229,10 +1229,10 @@
|
| options.path_exists(os.path.join(base_path, '.git')).AndReturn(False)
|
| # Checkout or update.
|
| options.path_exists(base_path).AndReturn(True)
|
| - gclient.CaptureSVNInfo(options, os.path.join(base_path, "."), '.'
|
| + gclient.CaptureSVNInfo(os.path.join(base_path, "."), '.'
|
| ).AndReturn(file_info)
|
| # Cheat a bit here.
|
| - gclient.CaptureSVNInfo(options, file_info['URL'], '.').AndReturn(file_info)
|
| + gclient.CaptureSVNInfo(file_info['URL'], '.').AndReturn(file_info)
|
| additional_args = []
|
| if options.manually_grab_svn_rev:
|
| additional_args = ['--revision', str(file_info['Revision'])]
|
| @@ -1276,9 +1276,8 @@
|
| </entry>
|
| </info>
|
| """ % self.url
|
| - options = self.Options(verbose=True)
|
| - gclient.CaptureSVN(options, ['info', '--xml', self.url],
|
| - '.').AndReturn(xml_text)
|
| + gclient.CaptureSVN(['info', '--xml', self.url],
|
| + '.', True).AndReturn(xml_text)
|
| expected = {
|
| 'URL': 'http://src.chromium.org/svn/trunk/src/chrome/app/d',
|
| 'UUID': None,
|
| @@ -1291,7 +1290,7 @@
|
| 'Node Kind': 'file',
|
| }
|
| self.mox.ReplayAll()
|
| - file_info = self._CaptureSVNInfo(options, self.url, '.')
|
| + file_info = self._CaptureSVNInfo(self.url, '.', True)
|
| self.assertEquals(sorted(file_info.items()), sorted(expected.items()))
|
| self.mox.VerifyAll()
|
|
|
| @@ -1319,11 +1318,10 @@
|
| </entry>
|
| </info>
|
| """ % (self.url, self.root_dir)
|
| - options = self.Options(verbose=True)
|
| - gclient.CaptureSVN(options, ['info', '--xml', self.url],
|
| - '.').AndReturn(xml_text)
|
| + gclient.CaptureSVN(['info', '--xml', self.url],
|
| + '.', True).AndReturn(xml_text)
|
| self.mox.ReplayAll()
|
| - file_info = self._CaptureSVNInfo(options, self.url, '.')
|
| + file_info = self._CaptureSVNInfo(self.url, '.', True)
|
| expected = {
|
| 'URL': self.url,
|
| 'UUID': '7b9385f5-0452-0410-af26-ad4892b7a1fb',
|
|
|