1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:07:59 -07:00

codereview: give advice on 'cannot create CL outside default branch'

Fixes #3430.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5981047
This commit is contained in:
Russ Cox 2012-04-02 12:55:23 -04:00
parent 512aeb305e
commit 3b7feb7001

View File

@ -1309,7 +1309,7 @@ def change(ui, repo, *pats, **opts):
name = "new"
cl = CL("new")
if repo[None].branch() != "default":
return "cannot create CL outside default branch"
return "cannot create CL outside default branch; switch with 'hg update default'"
dirty[cl] = True
files = ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))