mirror of
https://github.com/golang/go.git
synced 2025-11-08 04:31:01 +00:00
parent
8a20cfc009
commit
439f9ca809
1 changed files with 15 additions and 0 deletions
|
|
@ -722,6 +722,15 @@ def sync(ui, repo, **opts):
|
||||||
modheads = repo.pull(other)
|
modheads = repo.pull(other)
|
||||||
return commands.postincoming(ui, repo, modheads, True, "tip")
|
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):
|
def uisetup(ui):
|
||||||
if "^commit|ci" in commands.table:
|
if "^commit|ci" in commands.table:
|
||||||
commands.table["^commit|ci"] = (nocommit, [], "")
|
commands.table["^commit|ci"] = (nocommit, [], "")
|
||||||
|
|
@ -792,6 +801,12 @@ cmdtable = {
|
||||||
[],
|
[],
|
||||||
"",
|
"",
|
||||||
),
|
),
|
||||||
|
|
||||||
|
"codereview-login": (
|
||||||
|
dologin,
|
||||||
|
[],
|
||||||
|
"",
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue