| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright 2008-2009 Google Inc. All Rights Reserved. | 3 # Copyright 2008-2009 Google Inc. All Rights Reserved. |
| 4 # | 4 # |
| 5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
| 7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
| 8 # | 8 # |
| 9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 # | 10 # |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 " 'url': '%s',\n" | 435 " 'url': '%s',\n" |
| 436 " 'custom_deps': {},\n" | 436 " 'custom_deps': {},\n" |
| 437 "} ]\n" | 437 "} ]\n" |
| 438 ) % (solution_name, self.url) | 438 ) % (solution_name, self.url) |
| 439 | 439 |
| 440 deps = ( | 440 deps = ( |
| 441 "use_relative_paths = True\n" | 441 "use_relative_paths = True\n" |
| 442 "deps = {\n" | 442 "deps = {\n" |
| 443 " 'src/t': 'svn://scm.t/trunk',\n" | 443 " 'src/t': 'svn://scm.t/trunk',\n" |
| 444 "}\n") | 444 "}\n") |
| 445 | 445 entry_path = os.path.join(solution_name, 'src', 't').replace('\\', '\\\\') |
| 446 entries_content = ( | 446 entries_content = ( |
| 447 "entries = \\\n" | 447 "entries = \\\n" |
| 448 "{ '%s': '%s',\n" | 448 "{ '%s': '%s',\n" |
| 449 " '%s': 'svn://scm.t/trunk'}\n" | 449 " '%s': 'svn://scm.t/trunk'}\n" |
| 450 ) % (solution_name, self.url, os.path.join(solution_name, 'src', 't')) | 450 ) % (solution_name, self.url, entry_path) |
| 451 | 451 |
| 452 scm_wrapper_sol = self.mox.CreateMockAnything() | 452 scm_wrapper_sol = self.mox.CreateMockAnything() |
| 453 scm_wrapper_t = self.mox.CreateMockAnything() | 453 scm_wrapper_t = self.mox.CreateMockAnything() |
| 454 | 454 |
| 455 options = self.Options() | 455 options = self.Options() |
| 456 | 456 |
| 457 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, 'src', | 457 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, 'src', |
| 458 't', '.git') | 458 't', '.git') |
| 459 ).AndReturn(False) | 459 ).AndReturn(False) |
| 460 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, '.git') | 460 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, '.git') |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 """ | 1139 """ |
| 1140 gclient_scm.CaptureSVN = CaptureSVNMock | 1140 gclient_scm.CaptureSVN = CaptureSVNMock |
| 1141 info = gclient_scm.CaptureSVNStatus(None) | 1141 info = gclient_scm.CaptureSVNStatus(None) |
| 1142 self.assertEquals(info, []) | 1142 self.assertEquals(info, []) |
| 1143 | 1143 |
| 1144 | 1144 |
| 1145 if __name__ == '__main__': | 1145 if __name__ == '__main__': |
| 1146 unittest.main() | 1146 unittest.main() |
| 1147 | 1147 |
| 1148 # vim: ts=2:sw=2:tw=80:et: | 1148 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |