TortoiseHg Directory Lock

Today I’m just happened to start coding again after a long hiatus. And suddenly, tortoisehg is stuck and hg gave me “waiting for lock” message when I try to commit. I’m using tortoisehg 2. Here is the workaround I found:

Delete the

.hg/wlock

file in your working directory.

It works, although I don’t know whether it’s safe or not.

HgIgnore for PyroCMS

TortoiseHgPyroCMS
PyroCMS bundle includes .gitignore file. But since I’m using TortoiseHg, I need to find an .hgignore equal for it. Here is what I translated from .gitignore:

glob:.DS_Store
glob:.buildpath
glob:.project
glob:.settings
glob:system/pyrocms/cache/*_m/*
glob:system/pyrocms/cache/*_lib/*
glob:system/pyrocms/cache/dwoo/compiled/*.php
glob:system/pyrocms/cache/simplepie/*.spc
glob:system/pyrocms/cache/twitter/*
glob:system/pyrocms/config/database.php
glob:system/pyrocms/logs/log-*.php
glob:nbproject/*
glob:uploads/*
glob:documentation/*

Hope it’s useful for PyroCMS users who uses TortoiseHg. Enjoy!