【发布时间】:2012-08-17 01:44:48
【问题描述】:
我有一个带有子 repo 的 mercurial repo(在本例中为 bootstrap)。
我修改了文件,然后手动修改回来,但 hg 仍然认为它已修改并且不允许我提交其他更改(我不想向 sup-repo 提交任何内容)。
dl@Debian6:~/company/company-production$ hg status -S
M company/cms/static/less/index.less ## I want this file
M company/cms/static/vendor/bootstrap/less/carousel.less ## I DONT want this file
M company/templates/v2/homepage/carousel.html ## I want this file
你可以在上面看到状态认为它已修改。但是下面当我运行 diff carousel.less 时没有出现。这对我来说很奇怪。
dl@Debian6:~/company/company-production$ hg diff -S --stat
company/cms/static/less/index.less | 13 +++++++++++--
company/templates/v2/homepage/carousel.html | 10 ++++------
2 files changed, 15 insertions(+), 8 deletions(-)
所以我尝试恢复 suprepo 文件。但它不让我。
dl@Debian6:~/company/company-production$ hg revert company/cms/static/vendor/bootstrap/less/carousel.less
company/cms/static/vendor/bootstrap/less/carousel.less: no such file in rev 57e22a1738af
如何恢复子存储库文件:carousel.less,以便提交更改?
【问题讨论】:
标签: mercurial mercurial-subrepos