2012-05-21 86 views

回答

4

hg status man page中没有任何内容表明Mercurial直接支持该功能。

sed怎么样?

$ 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 

您可以使用shell别名(在the manual描述),使水银做到这一点,而不是常规的hg st的。

相关问题