2
我用hg parents --template {latesttag}+{latesttagdistance}
給我一個版本文件。我得到null+78
。Mercurial 2.3 - 爲什麼{latesttag}爲空?
這是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
?
- https://stackoverflow.com/a/4367747/356726
- How do I get the latest Mercurial tag from within Powershell
我可以以某種方式查看標籤是本地還是全球? –
@HorstWalter:本地標籤存儲在'/.hg/localtags'文件中。全局標籤存儲在'/.hgtags'中。詳情請參閱http://mercurial.selenic.com/wiki/Tag。 –
乾杯!很好的提示。 –