Mercurial tracks files only, not directories - it does track the location of files, but it is not possible to have an empty directory in a Mercurial repository (I have taken to creating empty hidden files as a workaround). Apparently this causes problems for some of the conversion/interaction tools, such hgsvn.
After several tries of various things, I've had success with hgsubversion python extension. However, installing in under Ubuntu (10.10, or Maverick Meerkat) is not completely trivial. Here is what's needed to make it work:
- To build a version of subvertpy newer than what's in the repository, install libsvn-dev and python-dev: sudo apt-get install libsvn-dev python-dev
- Download subvertpy from http://samba.org/~jelmer/subvertpy/, then build and install it locally. You need at least 0.7.4 (Ubuntu's repositories have 0.7.3).
- Finally, follow the instructions on http://mercurial.selenic.com/wiki/HgSubversion to install hgsubversion. I moved it into /usr/local/lib.
Very useful, thank you!
ReplyDelete