diff options
author | Ryan S. Arnold <ryan.arnold@linaro.org> | 2016-12-22 01:33:49 -0600 |
---|---|---|
committer | Ryan S. Arnold <ryan.arnold@linaro.org> | 2016-12-22 09:52:28 -0600 |
commit | e5ff0574bf4d7167ff69d94f5f9420341acca921 (patch) | |
tree | 5ad8648b5cae790df88782d2858dc994fb0c3620 /linaropy/rn/rnseries.py | |
parent | 4f29c7d385d2c67b431b7243df36647f2285e183 (diff) |
Provide variations on git log and git rev-list
Prepare for patch-set that will squash multiple commits.
Change-Id: I14bc8b5d524aaf5b2bce6be800c36035b4e48c82
Diffstat (limited to 'linaropy/rn/rnseries.py')
-rw-r--r-- | linaropy/rn/rnseries.py | 10 |
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()) |