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

Unified Diff: ensure_dependencies.py

Issue 29329559: Noissue - Avoid "detached head" when using Git branches (Closed)
Patch Set: Created Oct. 30, 2015, 8:05 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 2065f93d986646aa23ff94ccc82fcedceaf24d22..b24cb9d17e42c89c51ecbeec7c75e810c6750fcd 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -66,7 +66,7 @@ class Mercurial():
def pull(self, repo):
subprocess.check_call(["hg", "pull", "--repository", repo, "--quiet"])
- def update(self, repo, rev):
+ def update(self, repo, rev, _):
Wladimir Palant 2015/11/10 10:53:17 Please replace _ by revname so that the parameters
kzar 2015/11/10 12:21:29 Done.
subprocess.check_call(["hg", "update", "--repository", repo, "--quiet", "--check", "--rev", rev])
def ignore(self, target, repo):
@@ -122,7 +122,7 @@ class Git():
if newly_tracked:
subprocess.check_call(["git", "fetch", "--quiet", "origin"], cwd=repo)
- def update(self, repo, rev):
+ def update(self, repo, _, rev):
Wladimir Palant 2015/11/10 10:53:17 Please replace _ by rev and rev by revname so that
kzar 2015/11/10 12:21:29 Done.
subprocess.check_call(["git", "checkout", "--quiet", rev], cwd=repo)
def ignore(self, target, repo):
@@ -280,7 +280,7 @@ def update_repo(target, type, revision):
raise Exception("Failed to resolve revision %s" % revision)
logging.info("Updating repository %s to revision %s" % (target, resolved_revision))
- repo_types[type].update(target, resolved_revision)
+ repo_types[type].update(target, resolved_revision, revision)
def resolve_deps(repodir, level=0, self_update=True, overrideroots=None, skipdependencies=set()):
config = read_deps(repodir)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld