您的位置:首页 > 大数据 > 人工智能

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

2018-06-01 08:04 781 查看

问题

% 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  TortoiseHg