Sane versioning between branches in Mercurial
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
hgVersionMe.sh

README.md

Versioning between branches in Mercurial

Purpose

Wrote this for a project some friends and I worked on. All work in our case was done in "Default" with merges to Release, and then possibly Deploy.

Requirements

Because of how Mercurial handles tags between branches you must add these lines to your hgrc

vim .hg/hgrc
[merge-tools]
merge-tags.executable = cat
merge-tags.args = $local $other | sort -u >> $output

[merge-patterns]
.hgtags = merge-tags

Hate it?

Good! It's gross, heavy handed and probably shouldn't be written in bash. Improve it and let me know.