Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: tests/git_cl_test.py

Issue 10543151: Add test for git-svn with submodule/merge layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/basic.sh ('k') | tests/hooks.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for git_cl.py.""" 6 """Unit tests for git_cl.py."""
7 7
8 import os 8 import os
9 import StringIO 9 import StringIO
10 import stat 10 import stat
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ((['git', 'config', '--get-regexp', '^svn-remote\\.'],), 141 ((['git', 'config', '--get-regexp', '^svn-remote\\.'],),
142 ((('svn-remote.svn.url svn://svn.chromium.org/chrome\n' 142 ((('svn-remote.svn.url svn://svn.chromium.org/chrome\n'
143 'svn-remote.svn.fetch trunk/src:refs/remotes/origin/master'), 143 'svn-remote.svn.fetch trunk/src:refs/remotes/origin/master'),
144 None), 144 None),
145 0)), 145 0)),
146 ((['git', 'config', 'rietveld.server'],), 'codereview.example.com'), 146 ((['git', 'config', 'rietveld.server'],), 'codereview.example.com'),
147 ((['git', 'symbolic-ref', 'HEAD'],), 'refs/heads/working'), 147 ((['git', 'symbolic-ref', 'HEAD'],), 'refs/heads/working'),
148 ((['git', 'config', 'branch.working.merge'],), 'refs/heads/master'), 148 ((['git', 'config', 'branch.working.merge'],), 'refs/heads/master'),
149 ((['git', 'config', 'branch.working.remote'],), 'origin'), 149 ((['git', 'config', 'branch.working.remote'],), 'origin'),
150 ((['git', 'rev-list', '--merges', 150 ((['git', 'rev-list', '--merges',
151 '--grep="^SVN changes up to revision [0-9]*$"', 151 '--grep=^SVN changes up to revision [0-9]*$',
152 'refs/remotes/origin/master^!'],), ''), 152 'refs/remotes/origin/master^!'],), ''),
153 ((['git', 'update-index', '--refresh', '-q'],), ''), 153 ((['git', 'update-index', '--refresh', '-q'],), ''),
154 ((['git', 'diff-index', 'HEAD'],), ''), 154 ((['git', 'diff-index', 'HEAD'],), ''),
155 ((['git', 'rev-list', '^refs/heads/working', 155 ((['git', 'rev-list', '^refs/heads/working',
156 'refs/remotes/origin/master'],), 156 'refs/remotes/origin/master'],),
157 ''), 157 ''),
158 ((['git', 'log', '--grep=^git-svn-id:', '-1', '--pretty=format:%H'],), 158 ((['git', 'log', '--grep=^git-svn-id:', '-1', '--pretty=format:%H'],),
159 '3fc18b62c4966193eb435baabe2d18a3810ec82e'), 159 '3fc18b62c4966193eb435baabe2d18a3810ec82e'),
160 ((['git', 'rev-list', '^3fc18b62c4966193eb435baabe2d18a3810ec82e', 160 ((['git', 'rev-list', '^3fc18b62c4966193eb435baabe2d18a3810ec82e',
161 'refs/remotes/origin/master'],), ''), 161 'refs/remotes/origin/master'],), ''),
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 ((['git', 'config', 'rietveld.viewvc-url'],), ''), 458 ((['git', 'config', 'rietveld.viewvc-url'],), ''),
459 (('ViewVC URL:',), ''), 459 (('ViewVC URL:',), ''),
460 # DownloadHooks(True) 460 # DownloadHooks(True)
461 ((commit_msg_path, os.X_OK,), True), 461 ((commit_msg_path, os.X_OK,), True),
462 ] 462 ]
463 git_cl.main(['config']) 463 git_cl.main(['config'])
464 464
465 465
466 if __name__ == '__main__': 466 if __name__ == '__main__':
467 unittest.main() 467 unittest.main()
OLDNEW
« no previous file with comments | « tests/basic.sh ('k') | tests/hooks.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698