summaryrefslogtreecommitdiff
path: root/linaropy/rn/rnseries.py
diff options
context:
space:
mode:
Diffstat (limited to 'linaropy/rn/rnseries.py')
-rw-r--r--linaropy/rn/rnseries.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/linaropy/rn/rnseries.py b/linaropy/rn/rnseries.py
index 87dacb8..f68c547 100644
--- a/linaropy/rn/rnseries.py
+++ b/linaropy/rn/rnseries.py
@@ -223,6 +223,8 @@ class RNSeries(object):
workdir=self.next_series.shorttype(),
track=track,
branchname=self.next_series.branchname())
+
+
else:
print_info(
"Deriving your release-notes from branch %s%s%s%s"
@@ -235,9 +237,12 @@ class RNSeries(object):
track=remote_track,
branchname=self.next_series.branchname())
+ self.starting_commit=self.rn_series.rev_list(
+ self.rn_series.getbranch(),1)
+
# TODO: Detect if the user changed the template README.textile or
# template README.textile.series and ask if they want to merge the
- # changes into the new rn_series files.
+ # changes.
if not headless:
answer = yninput(
@@ -248,6 +253,9 @@ class RNSeries(object):
# TODO: If there are multiple commits, the subsequent calls should use
# commit --amend. Add an 'amend' parameter to GitRepo::commit().
+ commits=self.rn_series.rev_list(self.rn_series.getbranch(),
+ versus=self.starting_commit)
+
return self.rn_series.commit(
"Added NEWS items for %s." % self.next_series.branchname())