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 如何用完整路径而不是相对路径显示hg状态?_Mercurial - Fatal编程技术网

Mercurial 如何用完整路径而不是相对路径显示hg状态?

Mercurial 如何用完整路径而不是相对路径显示hg状态?,mercurial,Mercurial,我想运行hg status并以完整路径显示更改的文件 为什么??因为我想显示对3个不同存储库的更改,默认情况下,hg显示它们相对于存储库根的更改。Mercurial中的任何内容都不直接支持这一点 来点魔法怎么样 您可以使用中描述的shell别名使Mercurial执行此操作,而不是使用常规的hg st。中的任何内容都不直接支持此操作 来点魔法怎么样 您可以使用中描述的shell别名使Mercurial代替常规的hg st来执行此操作 $ pwd /var/www/mysite $ hg st

我想运行hg status并以完整路径显示更改的文件

为什么??因为我想显示对3个不同存储库的更改,默认情况下,hg显示它们相对于存储库根的更改。

Mercurial中的任何内容都不直接支持这一点

来点魔法怎么样

您可以使用中描述的shell别名使Mercurial执行此操作,而不是使用常规的hg st。

中的任何内容都不直接支持此操作

来点魔法怎么样

您可以使用中描述的shell别名使Mercurial代替常规的hg st来执行此操作

$ pwd
/var/www/mysite

$ hg st
A static/logo.png
M static/style.css
? temp.txt

$ hg st | sed -e "s~^\(.\) ~\1 ${PWD}/~g"
A /var/www/mysite/static/logo.png
M /var/www/mysite/static/style.css
? /var/www/mysite/temp.txt