Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 11063:eb23c876c111
tag: warn users about tag/branch possible name conflicts
As reported recently, Mercurial users can easily find confusion when
using a common name for a tag and a branch. It seems reasonable to warn
them about this potential outcome, to avoid that "surprise".
* Explain briefly the issue in "hg help tag"
* Warn when tagging a revision
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 19 Apr 2010 17:41:12 +0900 |
parents | 51d0387523c6 |
children | 37d1b20168d1 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Apr 19 11:31:19 2010 +0200 +++ b/mercurial/commands.py Mon Apr 19 17:41:12 2010 +0900 @@ -3209,6 +3209,9 @@ shared among repositories). See :hg:`help dates` for a list of formats valid for -d/--date. + + Since tag names have priority over branch names during revision + lookup, using an existing branch name as a tag name is discouraged. """ rev_ = "."