我用来hg parents --template {latesttag}+{latesttagdistance}给我一个版本文件.我得到null+78.
这就是hg parents让我:
changeset: 79:74a86aec9582
tag: 0.8.010
tag: tip
user: XYZ
date: Mon Sep 10 14:48:03 2012 +0200
summary: jQuery, jQuery UI, and jqGrid updates completed as basis
Run Code Online (Sandbox Code Playgroud)
为什么我没有得到 0.8.010 tag+1?

该latesttag方法是标准的,如下所述:
hg help templates定义latesttag为:
此变更集的祖先中的最新全局标记.
它似乎0.8.010只是一个本地标记(没有提交创建全局标记).本地标记不会显示在{latesttag}.
| 归档时间: |
|
| 查看次数: |
271 次 |
| 最近记录: |