summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5fe419a)
I'm going to need patch objects there, so avoid using variable "patch"
to store only a patchname.
Signed-off-by: Yann Dirson <ydirson@altern.org>
else:
patch_branch = commit_str.split('@')
if options.name:
else:
patch_branch = commit_str.split('@')
if options.name:
+ patchname = options.name
elif len(patch_branch) == 2:
elif len(patch_branch) == 2:
- patch = patch_branch[0]
+ patchname = patch_branch[0]
- patch = make_patch_name(commit.get_log(), crt_series.patch_exists)
+ patchname = make_patch_name(commit.get_log(), crt_series.patch_exists)
if options.parent:
parent = git_id(options.parent)
if options.parent:
parent = git_id(options.parent)
print 'Importing commit %s...' % commit_id,
sys.stdout.flush()
print 'Importing commit %s...' % commit_id,
sys.stdout.flush()
- crt_series.new_patch(patch, message = message, can_edit = False,
+ crt_series.new_patch(patchname, message = message, can_edit = False,
unapplied = True, bottom = bottom, top = top,
author_name = author_name,
author_email = author_email,
author_date = author_date)
if not options.unapplied:
unapplied = True, bottom = bottom, top = top,
author_name = author_name,
author_email = author_email,
author_date = author_date)
if not options.unapplied:
- modified = crt_series.push_patch(patch)
+ modified = crt_series.push_patch(patchname)
- if crt_series.empty_patch(patch):
+ if crt_series.empty_patch(patchname):
print 'done (empty patch)'
elif modified:
print 'done (modified)'
print 'done (empty patch)'
elif modified:
print 'done (modified)'