2016-12-15 50 views

回答

0

基於上述子的問題,我認爲以下將工作:

// Get the changeset that the tag points to 
def referenced = $(hg id -q -r ${tag}) 

// Get the changeset that added the tag 
def addedTag = $(hg log -r children(${referenced}) --template {node}) 

// Check whether the remote repository contains the changeset 
def tagFound = $(hg outgoing -r ${addedTag})