aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/pending.go
diff options
context:
space:
mode:
authorJaana Burcu Dogan <jbd@google.com>2016-11-03 11:13:00 -0700
committerJaana Burcu Dogan <jbd@google.com>2016-11-05 19:49:02 +0000
commite973841853e6a8257069881107dd934d04049ae8 (patch)
treece54a4fada8121edc7f19be74a3a5579def8980f /git-codereview/pending.go
parent7435a04d2dc76c3b9ae763e40140e086637d9826 (diff)
downloadgo-x-review-e973841853e6a8257069881107dd934d04049ae8.tar.xz
x/review/git-codereview: pending should mention abandoned CLs
Fixes #golang/go#13622. Change-Id: I3e16293dd272adbf06ef039f047cefa98ac1352d Reviewed-on: https://go-review.googlesource.com/32676 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'git-codereview/pending.go')
-rw-r--r--git-codereview/pending.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-codereview/pending.go b/git-codereview/pending.go
index 80c90d8..0219a20 100644
--- a/git-codereview/pending.go
+++ b/git-codereview/pending.go
@@ -285,8 +285,11 @@ func formatCommit(w io.Writer, c *Commit, short bool) {
if g.CurrentRevision == c.Hash {
tags = append(tags, "mailed")
}
- if g.Status == "MERGED" {
+ switch g.Status {
+ case "MERGED":
tags = append(tags, "submitted")
+ case "ABANDONED":
+ tags = append(tags, "abandoned")
}
if len(tags) > 0 {
fmt.Fprintf(w, " (%s)", strings.Join(tags, ", "))