3

私はこれをしばらく検索しましたが、何も見ませんでした。つまり、それを行うべきではないか、単に行うことができないということです。

Mercurial のフックのリストを調べたところ、hg pull コマンドを実行した後にスクリプトを実行するフックが見つからなかった (または 1 つが機能した) ように見えました。

ありがとうございました

4

1 に答える 1

3

「フック」に関する hgrc docs セクションから-

"incoming"
  Run after a changeset has been pulled, pushed, or unbundled into the
  local repository. The ID of the newly arrived changeset is in
  "$HG_NODE". URL that was source of changes came is in "$HG_URL".

また...

"post-<command>"
  Run after successful invocations of the associated command. The contents
  of the command line are passed as "$HG_ARGS" and the result code in
  "$HG_RESULT". Parsed command line arguments are passed as "$HG_PATS" and
  "$HG_OPTS". These contain string representations of the python data
  internally passed to <command>. "$HG_OPTS" is a dictionary of options
  (with unspecified options set to their defaults). "$HG_PATS" is a list
  of arguments. Hook failure is ignored.

(ドキュメントには、構成が実際にどのように見えるべきか、およびフックスクリプトがどのように呼び出されるかについても詳しく説明されています。)

于 2013-04-11T15:59:05.950 に答える