]> Cypherpunks repositories - gostls13.git/commitdiff
add codereview-login command
authorRuss Cox <rsc@golang.org>
Thu, 22 Oct 2009 21:14:17 +0000 (14:14 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 22 Oct 2009 21:14:17 +0000 (14:14 -0700)
R=r
CC=go-dev
http://go/go-review/1012007

lib/codereview/codereview.py

index f0092a3c60090bbc873eb68342537c6f62a48516..8ee0a6b77afe29d7c2d8d5150aa0c505a1ed8b45 100644 (file)
@@ -722,6 +722,15 @@ def sync(ui, repo, **opts):
        modheads = repo.pull(other)
        return commands.postincoming(ui, repo, modheads, True, "tip")
 
+def dologin(ui, repo, **opts):
+       """log in to code review server
+       
+       Logs in to the code review server, saving a cookie in
+       a file in your home directory.
+       """
+       MySend("/")
+
+
 def uisetup(ui):
        if "^commit|ci" in commands.table:
                commands.table["^commit|ci"] = (nocommit, [], "")
@@ -792,6 +801,12 @@ cmdtable = {
                [],
                "",
        ),
+       
+       "codereview-login": (
+               dologin,
+               [],
+               "",
+       ),
 }