diff options
author | Russ Cox <rsc@golang.org> | 2011-06-29 00:45:29 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-06-29 00:45:29 -0400 |
commit | 6ec4c5218d33bde2cdb12f12c7d3ffa9aa75b04d (patch) | |
tree | dcebdd63af4721d8ce020f202449539e34cc594d /lib/codereview/codereview.py | |
parent | 7ecd365ea472d809749138adb5d7800c0e2abe11 (diff) | |
download | go-6ec4c5218d33bde2cdb12f12c7d3ffa9aa75b04d.tar.gz |
codereview: restrict sync to default branch
'default' is the name of the main branch,
the one that isn't a release branch.
R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/4636072
Diffstat (limited to 'lib/codereview/codereview.py')
-rw-r--r-- | lib/codereview/codereview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 0b636c06a..385ac2c06 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -1316,7 +1316,7 @@ def clpatch_or_undo(ui, repo, clname, opts, mode): # Create fresh CL and start with patch that would reverse the change. vers = short(rev.node()) cl = CL("new") - desc = rev.description() + desc = str(rev.description()) if mode == "undo": cl.desc = (undoHeader % (clname, vers)) + desc + undoFooter else: @@ -1783,7 +1783,7 @@ def sync(ui, repo, **opts): err = commands.postincoming(ui, repo, modheads, True, "tip") if err: return err - commands.update(ui, repo) + commands.update(ui, repo, rev="default") sync_changes(ui, repo) def sync_note(msg): |