Mercurial 2.3 - 为什么{latesttag}为null?

时间:2012-09-10 13:02:46

标签: mercurial

我使用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

为什么我没有 0.8.010 tag+1

Mercurial visual

latesttag方法是标准的,如下所述:

  1. https://stackoverflow.com/a/4367747/356726
  2. How do I get the latest Mercurial tag from within Powershell

1 个答案:

答案 0 :(得分:5)

hg help templateslatesttag定义为:

  

此变更集的祖先中的最新全局标记。

0.8.010似乎只是一个本地标记(没有提交创建全局标记)。本地代码未显示在{latesttag}