问题:
mercurial branch name use integer as a name

解决:

到安装目录下找到mercurial/scmutil.py文件(我的:/usr/local/Cellar/mercurial/3.8.1/lib/python2.7/site-packages/mercurial),修改下面

def checknewlabel(repo, lbl, kind):
# Do not use the "kind" parameter in ui output.
# It makes strings difficult to translate.
if lbl in ['tip', '.', 'null']:
raise error.Abort(_("the name '%s' is reserved") % lbl)
for c in (':', '\0', '\n', '\r'):
if c in lbl:
raise error.Abort(_("%r cannot be used in a name") % c)
//这里以前没有注释掉,现在注释掉,这样就不会对名称进行int检查,就可以使用
//int 类型的名字了
# try:
# int(lbl)
# raise error.Abort(_("cannot use an integer as a name"))
# except ValueError:
# pass

参考:
https://www.mercurial-scm.org/pipermail/mercurial-devel/2013-February/048686.html
https://www.mercurial-scm.org/pipermail/mercurial-devel/2012-October/045567.html (重要)

最新文章

  1. python代码中碰到的问题及解决
  2. spring cloud资料
  3. 查看SQLServer最耗资源时间的SQL语句
  4. css3 选择器(二)
  5. windows hosts
  6. Eclipse下新建Maven项目、自动打依赖jar包
  7. CentOS 安装SolrCloud
  8. Qt通过UDP传图片,实现自定义分包和组包
  9. ubuntu安装postgresql与postgis
  10. ant+dbunit 导xml到mysql
  11. 如何设置虚拟机、开发板、windows IP才能互相PING通
  12. 进入IT行业四月后的感想(生活日志)欢迎评论
  13. lesson - 4 Linux目录文件管理
  14. 举例MyBatis的常用的API及方法
  15. 原生js写的flybird小游戏
  16. vmware完整克隆(linux)
  17. Android:Unable to find explicit activity class
  18. Guava cache 示例
  19. C#控件之:进度条(ProgressBar)
  20. delphi JPG或BMP图片透明显示

热门文章

  1. iOS - 什么!iOS13 又获取不到WiFi了
  2. 从 Vue 的视角学 React(一)—— 项目搭建
  3. 深入理解 ValueTask
  4. 微服务——SpringCloud(Eureka注册中心搭建)
  5. js 提取特定的时间区间段
  6. Jquery学习笔记,全面实用,需要的可以留下邮箱,给大家发原稿文档
  7. prometheus学习系列九: Prometheus AlertManager使用
  8. 如何处理动态JSON in Go
  9. 大数据:Hadoop(HDFS 读写数据流程及优缺点)
  10. linux命令-jdk及mysql安装操作