mirror of https://github.com/golang/go.git
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:
parent
512aeb305e
commit
3b7feb7001
|
|
@ -1309,7 +1309,7 @@ def change(ui, repo, *pats, **opts):
|
||||||
name = "new"
|
name = "new"
|
||||||
cl = CL("new")
|
cl = CL("new")
|
||||||
if repo[None].branch() != "default":
|
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
|
dirty[cl] = True
|
||||||
files = ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))
|
files = ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue