hg push在存储库

时间:2016-06-21 13:05:36

标签: mercurial

我有一个Mercurial存储库,Web服务器使用一些Python脚本。我只有一个分支和一个嵌套的git存储库。一切都是对的。现在问题在于:为了进行调试和测试,我最终直接对存储库中的文件进行更改,然后在完成后在本地报告修改。因为,每当我试图推送一些东西(当然是在提交之后)它就会挂起而我什么也做不了。它显示的最后一条消息是searching for changes

我也试过--debug。这就是我得到的:

nested: git --version
nested: git for-each-ref --format %(objectname) %(rename)
nested: git merge-base b8e9bd80c6d0ec8e003033e2d2f36f336c994f7f 7697f69d09ab4e9b3f6e0d83232675c91c45777e
query 1; heads
sending batch command
searching for changes
all remote heads known locally
preparing listkeys for "phases"
sending listkeys command
received listkey for "phases": 15 bytes
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for "bookmarks": 0 bytes
sending branchmap command
sending branchmap command
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for "bookmarks": 0 bytes
1 changesets found
list of changesets:
caa866293415a14a273676bc2a7d37617084cdf2
bundle2-output-bundle: "HG20", 4 parts total
bundle2-output-part: "replycaps" 155 bytes payload
bundle2-output-part: "check:heads" streamed payload
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
sending unbundle command
sending 751 bytes

如何强制推送或恢复存储库中的更改?

可选:是否可以在存储库中进行临时更改以进行测试和调试,并使一切仍然有效?

1 个答案:

答案 0 :(得分:1)

我终于解决了我的问题。

在服务器的存储库的.hg目录中,我找到了一个阻止任何push命令的wlock文件。我刚刚删除了它。我还删除了修改后的文件,以便推送正确。

问题解决了!