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

Unified Diff: tests/scm_unittest.py

Issue 6598068: Add support for wildcards in svn remote configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: sync Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scm.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/scm_unittest.py
diff --git a/tests/scm_unittest.py b/tests/scm_unittest.py
index 5b21c6f17ebcc6fa819e501390fb3167e52e642b..dde6b26a2325796eec07f7edee88781da1b19ebf 100755
--- a/tests/scm_unittest.py
+++ b/tests/scm_unittest.py
@@ -53,7 +53,7 @@ class GitWrapperTestCase(BaseSCMTestCase):
'FetchUpstreamTuple',
'GenerateDiff', 'GetBranch', 'GetBranchRef', 'GetCheckoutRoot',
'GetDifferentFiles', 'GetEmail', 'GetPatchName', 'GetSVNBranch',
- 'GetUpstreamBranch', 'IsGitSvn', 'ShortBranchName',
+ 'GetUpstreamBranch', 'IsGitSvn', 'MatchSvnGlob', 'ShortBranchName',
]
# If this test fails, you should add the relevant test.
self.compareMembers(scm.GIT, members)
@@ -65,6 +65,17 @@ class GitWrapperTestCase(BaseSCMTestCase):
self.mox.ReplayAll()
self.assertEqual(scm.GIT.GetEmail(self.root_dir), 'mini@me.com')
+ def testMatchSvnGlob(self):
+ self.assertEquals(scm.GIT.MatchSvnGlob(
+ 'svn://svn.chromium.org/chrome/trunk/src',
+ 'svn://svn.chromium.org/chrome',
+ 'trunk/src:refs/remotes/origin/trunk',
+ False), 'refs/remotes/origin/trunk')
+ self.assertEquals(scm.GIT.MatchSvnGlob(
+ 'https://v8.googlecode.com/svn/branches/bleeding_edge',
+ 'https://v8.googlecode.com/svn',
+ 'branches/*:refs/remotes/*',
+ True), 'refs/remotes/bleeding_edge')
class SVNTestCase(BaseSCMTestCase):
def setUp(self):
« no previous file with comments | « scm.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698