From 0758d2f1d61288c83282749d2b36958d2c289e7f Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 22 Oct 2008 13:13:40 -0700 Subject: [PATCH] Show which user account each change was uploaded under 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 --- project.py | 4 ++++ subcmds/upload.py | 1 + 2 files changed, 5 insertions(+) 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): commit = self.project.bare_git.rev_parse(R_HEADS + self.name) return 'http://%s/r/%s' % (me.remote.review, commit[0:12]) + @property + def owner_email(self): + return self.project.UserEmail + class StatusColoring(Coloring): 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. branch.project.relpath + '/', branch.name) print >>sys.stderr, '%s' % branch.tip_url + print >>sys.stderr, '(as %s)' % branch.owner_email print >>sys.stderr, '' if have_errors: