From 3b7feb7001a3d7a99a4340b2fe3cf75b6ad5ceb1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 2 Apr 2012 12:55:23 -0400 Subject: [PATCH] codereview: give advice on 'cannot create CL outside default branch' Fixes #3430. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5981047 --- lib/codereview/codereview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 61e2fd772bf..f3cb485953b 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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))