]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: restrict sync to default branch
authorRuss Cox <rsc@golang.org>
Wed, 29 Jun 2011 04:45:29 +0000 (00:45 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Jun 2011 04:45:29 +0000 (00:45 -0400)
'default' is the name of the main branch,
the one that isn't a release branch.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4636072

lib/codereview/codereview.py

index 0b636c06a4f9d0b60f9c4271121a3cdfc87f46b6..385ac2c06876a1f9dd6518ec25722f5d29147df3 100644 (file)
@@ -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):