Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial中钩后用力推_Mercurial_Mercurial Hook - Fatal编程技术网

Mercurial中钩后用力推

Mercurial中钩后用力推,mercurial,mercurial-hook,Mercurial,Mercurial Hook,我想知道在Mercurial中是否有可能在挂钩后用力推 我开发了一些pretag钩子来处理Redmine版本,如果所有检查都正常,我会在跟踪器中关闭该版本。问题是,用户可以关闭版本,但不能将标记推送到服务器。这就是为什么我需要一种方法来实现它 我在pretag钩子的末尾尝试了“hg update”,但它不起作用 谢谢 我想,你可以使用pre-taghook,而不是特别的pretag 如果需要推送,请从本地推送到远程,而不是更新本地工作目录:hg tag NAME--config hooks.p

我想知道在Mercurial中是否有可能在挂钩后用力推

我开发了一些pretag钩子来处理Redmine版本,如果所有检查都正常,我会在跟踪器中关闭该版本。问题是,用户可以关闭版本,但不能将标记推送到服务器。这就是为什么我需要一种方法来实现它

我在pretag钩子的末尾尝试了“hg update”,但它不起作用

谢谢

  • 我想,你可以使用
    pre-tag
    hook,而不是特别的
    pretag
  • 如果需要推送,请从本地推送到远程,而不是更新本地工作目录:
    hg tag NAME--config hooks.pre tag='。。。;hg推送“