Mercurial stuck “waiting for lock”

When “waiting for lock on repository”, delete the repository file: .hg/wlock (or it may be in .hg/store/lock) When deleting the lock file, you must make sure nothing else is accessing the repository. (If the lock is a string of zeros or blank, this is almost certainly true).

Diffing between two entire directories/projects in hg or git?

To simply create a diff patch in git’s diff format from two arbitrary files or directories, without any fancy repository stuff or version control: git diff –no-index some/path other/path > some_filename Jakub NarÄ™bski’s comment on knittl’s answer hinted at the answer… For simplicity’s sake, that’s the full command. The > part creates a file and … Read more

Changing Mercurial “Default” Parent URL

You can even add multiple entries in the [paths] section of your .hg/hgrc file. [paths] default = /repo_store/hg/project1 sandbox = /repo_store/hg/project1_experimental And then can specify its alias in the mercurial commands. default repo need not be specified but others have to be like, hg in # check incoming changes from default repo hg in default … Read more

Git serve: I would like it that simple

Navigate into your project and start git-daemon with the following switches: cd project git daemon –reuseaddr –base-path=. –export-all –verbose This tells git-daemon to serve up all projects inside the current directory (which I assume is the project directory containing the .git/ folder). It also tells it to re-use the same address if you shut it … Read more

Mercurial Eclipse Plugin

MercurialEclipse Update site: https://bitbucket.org/mercurialeclipse/update-site/raw/default/ Installation manual As stated below (in comments) the name is MercurialEclipse. The name HgEclipse was a fork that Intland did and was later “merged” back again with MercurialEclipse, which moved around a bit between the current site, Google code and javaforge.com.