Mercurial > public > mercurial-scm > hg
diff tests/test-tag @ 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 | 39cf453da958 |
children | 6d7cf82453be |
line wrap: on
line diff
--- a/tests/test-tag Mon Apr 19 11:31:19 2010 +0200 +++ b/tests/test-tag Mon Apr 19 17:41:12 2010 +0900 @@ -68,3 +68,8 @@ cat .hgtags hg tag -d '1000000 0' newline cat .hgtags + +echo % tag and branch using same name +hg branch tag-and-branch-same-name +hg ci -m"discouraged" +hg tag tag-and-branch-same-name