mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-07-02 20:17:19 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8c6eef4713 | |||
34d237fbfb |
@ -69,14 +69,14 @@ least one of these before using this command."""
|
||||
Returns:
|
||||
new value of edited text; None if editing did not succeed
|
||||
"""
|
||||
editor = cls._GetEditor()
|
||||
editor = cls._GetEditor().split()
|
||||
fd, path = tempfile.mkstemp()
|
||||
try:
|
||||
os.write(fd, data)
|
||||
os.close(fd)
|
||||
fd = None
|
||||
|
||||
if subprocess.Popen([editor, path]).wait() != 0:
|
||||
if subprocess.Popen(editor + [path]).wait() != 0:
|
||||
raise EditorError()
|
||||
return open(path).read()
|
||||
finally:
|
||||
|
@ -114,10 +114,11 @@ def UploadBundle(project,
|
||||
req.dest_branch = str(dest_branch)
|
||||
for c in revlist:
|
||||
req.contained_object.append(c)
|
||||
for change_id,commit_id in replace_changes.iteritems():
|
||||
r = req.replace.add()
|
||||
r.change_id = change_id
|
||||
r.object_id = commit_id
|
||||
if replace_changes:
|
||||
for change_id,commit_id in replace_changes.iteritems():
|
||||
r = req.replace.add()
|
||||
r.change_id = change_id
|
||||
r.object_id = commit_id
|
||||
else:
|
||||
req = UploadBundleContinue()
|
||||
req.bundle_id = bundle_id
|
||||
|
Reference in New Issue
Block a user