When trying to apply a series of diffs that was exported from an StGIT
series, it can be convenient to know exactly which base commit the
patches apply to. Save that commit as a comment in the "series" file.
Signed-off-by: Chuck Lever <cel@netapp.com>
tmpl = file(patch_tmpl).read()
break
tmpl = file(patch_tmpl).read()
break
+ # note the base commit for this series
+ base_commit = crt_series.get_patch(patches[0]).get_bottom()
+ print >> series, '# This series applies on GIT commit %s' % base_commit
+
patch_no = 1;
for p in patches:
pname = p
patch_no = 1;
for p in patches:
pname = p