觖决问题: TortoiseHg waiting for lock on working directory of X:\woks\2017\proj\FPGAFW@proj held by ''

时光毁灭记忆、已成空白 提交于 2019-12-05 11:55:37

问题

% hg add -- pll3.inc pll3.vhd pll3_inst.vhd pllClock.vhd

waiting for lock on working directory of X:\woks\2017\proj\FPGAFW@proj held by ''

解决方法

关闭TortoiseHg后,删除这个文件: .hg/wlock

版本

TortoiseHg: 4.5.3

it should be : delete the file .hg/wlock

参考

https://codeyarns.com/2011/01/20/mercurial-waiting-for-lock-2/#comment-65155

Problem

Mercurial repositories can sometimes be left in a locked state. A lock is created whenever a client is connected to a repository. But, this lock is not removed if the client got disconnected, say over the network. If any client now tries to change the repository (say push changes), Mercurial complains that it is waiting for the lock.

Here is an example:

P:\Foobar>hg push
pushing to Q:\FoobarRep
waiting for lock on repository Q:\FoobarRep held by 'Computer42:9999'

In this example, Mercurial is complaining that a lock is still being held by a client from the computer named Computer42 over port 9999.

Solution

Delete the lock file in the .hg\store directory of the repository. In the example above, delete the file Q:\FoobarRep\.hg\store\lock

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!