我想避免在使用mercurial
的补丁时避免磁盘上的文件而不是./script_gen_diff > diff && hg import diff && rm diff
,我希望能够./script_gen_diff | hg import
。可能吗 ?文档中没有这样的选项。
答案 0 :(得分:2)
doc
中没有这样的选项
RLLY?我可以阅读hg help import
并发现
hg import [OPTION] ... PATCH ...
...
To read a patch from standard input, use "-" as the patch name. If a URL is specified, the patch will be downloaded from there.