diff -r 19388ba75a06 -r b17be267b59c mercurial/scmutil.py --- a/mercurial/scmutil.py Wed Oct 17 16:32:43 2012 -0500 +++ b/mercurial/scmutil.py Wed Oct 17 16:34:46 2012 -0500 @@ -27,6 +27,10 @@ else: ui.status(_("no changes found\n")) +def checknewlabel(repo, lbl): + if lbl in ['tip', '.', 'null']: + raise util.Abort(_("the name '%s' is reserved") % lbl) + def checkfilename(f): '''Check that the filename f is an acceptable filename for a tracked file''' if '\r' in f or '\n' in f: