commit 97d0e7ea08662f99cdd588503a4b7a43b8079b58 parent c2f92aaca05828195b01dadf181d99f07022c6f6 Author: ccx <root@dorje.wpr.cz> Date: Mon, 21 Feb 2022 17:12:16 +0100 Don't show commit for already present revision in update-bzr. Diffstat:
M | update-bzr | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/update-bzr b/update-bzr @@ -95,10 +95,18 @@ bzrlog() { } show_diffs() { - local name + local name next_revid for name in $repos_modified; do printf "== showing differences for %s == %s -> %s ==\n" $name $revisions_old[$name] $revisions_new[$name] - bzrlog "revid:$revisions_old[$name]..revid:$revisions_new[$name]" $repo_sources[$name] + + # Displayed revision range is inclusive, but we already have the first revision. + next_revid=$( + bzr log --long --forward --show-ids \ + -r "revid:$revisions_old[$name]..revid:$revisions_new[$name]" \ + $repo_sources[$name] \ + | awk '/^revision-id: /{if(x){print $2;exit};x=1}' + ) + bzrlog "revid:$next_revid..revid:$revisions_new[$name]" $repo_sources[$name] done for name in $repos_added; do printf "== showing differences for %s == %s -> %s ==\n" $name start $revisions_new[$name]