Show More
@@ -2002,8 +2002,10 b' def tag(ui, repo, name, rev=None, **opts' | |||
|
2002 | 2002 | else: |
|
2003 | 2003 | r = hex(repo.changelog.tip()) |
|
2004 | 2004 | |
|
2005 | if name.find(revrangesep) >= 0: | |
|
2006 | raise util.Abort(_("'%s' cannot be used in a tag name") % revrangesep) | |
|
2005 | disallowed = (revrangesep, '\r', '\n') | |
|
2006 | for c in disallowed: | |
|
2007 | if name.find(c) >= 0: | |
|
2008 | raise util.Abort(_("%s cannot be used in a tag name") % repr(c)) | |
|
2007 | 2009 | |
|
2008 | 2010 | if opts['local']: |
|
2009 | 2011 | repo.opener("localtags", "a").write("%s %s\n" % (r, name)) |
General Comments 0
You need to be logged in to leave comments.
Login now