Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 5025466448609280: 1449-Prefer Mercurial over git (Closed)
Patch Set: Created Sept. 30, 2014, 4:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index 586d737b87c81d6c4c1fb6dc146eabd3f9b46127..3285f854e302a5918e11da1cb049b2310625a789 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -87,10 +87,10 @@ class Git():
def update(self, repo, rev):
subprocess.check_call(["git", "checkout", "--quiet", rev], cwd=repo)
-repo_types = {
- "hg": Mercurial(),
- "git": Git(),
-}
+repo_types = OrderedDict((
+ ("hg", Mercurial()),
+ ("git", Git()),
+))
def parse_spec(path, line):
if "=" not in line:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld