问题描述
一夜之间,我的 Tortoise 不再能够推送到我的工作存储库,即使我的两个锁都显示免费。
我得到 Import-CSV -Path c:\folder\adaccounts.csv
ForEach ($User in $Users)
{
IF ($User.Status -contains "disabled")
{
Get-ADUser -Identity $user.samaccountname | disable-ADAccount
}
elseif ($User.Status -contains "Active")
{
Get-ADUser -Identity $user.samaccountname | Enable-ADAccount
}
尝试推送很长时间后,我得到了 waiting for lock on working directory of \\uGames/MyGameRepo held by process '24012' on host MyHost.
有another question,但没有解决方案解决了我的问题。
这是我的 abort: working directory of \\uGames/MyGameRepo: timed out waiting for lock held by MyHost:24012.
的输出:
hg debuglock
我不能推送任何东西...我该如何解决这个问题?
解决方法
您可能需要前往服务器上的存储库并检查那里的锁定文件。
由于您使用网络文件共享作为存储库,因此您的本地 HG 客户端将直接在该位置读取/写入文件。所以可能是那里的锁文件有问题。