這天要用 TortoiseHg commit 時,GUI 介面卡住好久。改下 commit:

> hg commit -I myfile.txt -m "To do something"

結果系統顯示:

> waiting for lock on repository held by ''

上網查,一開始找到 stackoverflow 的這篇 "Mercurial stuck “waiting for lock”",說可以刪除專案 repository 裡頭的 .hg 目錄下的鎖定檔 (.hg/store/lock),但是找不到這個檔案。

後來才發現我們用的 TortoiseHg 4.3.1 結構上已經不把鎖定檔資料放在 .hg/store/lock 了,要改成刪除 .hg/wlock

打完收工~

 

arrow
arrow

    小攻城師 發表在 痞客邦 留言(0) 人氣()