Commit 3b29de12 authored by nasser@codeaurora.org's avatar nasser@codeaurora.org

Ensure --revision is used when specified

BUG=http://crosbug.com/1669

Review URL: http://codereview.chromium.org/661229

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@40911 0039d316-1c4b-4281-b951-d872f2087c98
parent 4baa0ad6
...@@ -288,8 +288,11 @@ class GitWrapper(SCMWrapper, scm.GIT): ...@@ -288,8 +288,11 @@ class GitWrapper(SCMWrapper, scm.GIT):
# Can't find a merge-base since we don't know our upstream. That makes # Can't find a merge-base since we don't know our upstream. That makes
# this command VERY likely to produce a rebase failure. For now we # this command VERY likely to produce a rebase failure. For now we
# assume origin is our upstream since that's what the old behavior was. # assume origin is our upstream since that's what the old behavior was.
self._AttemptRebase('origin', files=files, verbose=options.verbose, upstream_branch = 'origin'
printed_path=printed_path) if options.revision:
upstream_branch = revision
self._AttemptRebase(upstream_branch, files=files,
verbose=options.verbose, printed_path=printed_path)
printed_path = True printed_path = True
elif rev_type is 'hash': elif rev_type is 'hash':
# case 2 # case 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment