summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-10-22 13:13:40 -0700
committerShawn O. Pearce <sop@google.com>2008-10-22 13:13:40 -0700
commit0758d2f1d61288c83282749d2b36958d2c289e7f (patch)
tree484a67366aeb84d83147eeec2ba4fd459dbf0879
parentbb0ee8057165a9d54e1e1ab9addb15a2a57ccfc1 (diff)
downloadgit-repo-0758d2f1d61288c83282749d2b36958d2c289e7f.tar.gz
Show which user account each change was uploaded underv1.0.3
This way users are well aware of which account we used when the uploads are complete, so they can be certain to sign into the web application with that user identity. Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--project.py4
-rw-r--r--subcmds/upload.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/project.py b/project.py
index d9591c40..2b4a4f95 100644
--- a/project.py
+++ b/project.py
@@ -88,6 +88,10 @@ class ReviewableBranch(object):
88 commit = self.project.bare_git.rev_parse(R_HEADS + self.name) 88 commit = self.project.bare_git.rev_parse(R_HEADS + self.name)
89 return 'http://%s/r/%s' % (me.remote.review, commit[0:12]) 89 return 'http://%s/r/%s' % (me.remote.review, commit[0:12])
90 90
91 @property
92 def owner_email(self):
93 return self.project.UserEmail
94
91 95
92class StatusColoring(Coloring): 96class StatusColoring(Coloring):
93 def __init__(self, config): 97 def __init__(self, config):
diff --git a/subcmds/upload.py b/subcmds/upload.py
index ad05050e..9018455f 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -158,6 +158,7 @@ changes in all projects listed in the manifest.
158 branch.project.relpath + '/', 158 branch.project.relpath + '/',
159 branch.name) 159 branch.name)
160 print >>sys.stderr, '%s' % branch.tip_url 160 print >>sys.stderr, '%s' % branch.tip_url
161 print >>sys.stderr, '(as %s)' % branch.owner_email
161 print >>sys.stderr, '' 162 print >>sys.stderr, ''
162 163
163 if have_errors: 164 if have_errors: