Commit d118905c authored by Russ Cox's avatar Russ Cox

codereview: set status while committing CL

Not sure how to detect read-only but at least
this pins the blame on the hg server.

R=r, bradfitz
CC=golang-dev
https://golang.org/cl/4847053
parent c0242390
...@@ -1722,6 +1722,7 @@ def submit(ui, repo, *pats, **opts): ...@@ -1722,6 +1722,7 @@ def submit(ui, repo, *pats, **opts):
print Indent('\n'.join(cl.files), "\t") print Indent('\n'.join(cl.files), "\t")
return "dry run; not submitted" return "dry run; not submitted"
set_status("pushing " + cl.name + " to remote server")
m = match.exact(repo.root, repo.getcwd(), cl.files) m = match.exact(repo.root, repo.getcwd(), cl.files)
node = repo.commit(ustr(opts['message']), ustr(userline), opts.get('date'), m) node = repo.commit(ustr(opts['message']), ustr(userline), opts.get('date'), m)
if not node: if not node:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment