Turn a non-repository into one

Dj Gilcrease digitalxero at gmail.com
Sat Jul 25 21:30:05 UTC 2009


I have an odd situation. I have an app that has many existing users,
and I would like to be able to turn their current installs into a
repository that is based on mine. Currently their installs are raw (no
.hg directory at all) and I has hoping that "hg init" && "hg pull
MY_REPO" would just overwrite their existing files, leaving ones that
are not in the repo alone, but when I do that I get

rollback completed
Traceback (most recent call last):
  File "setup.py", line 238, in install
    self.installer.install()
  File "/home/digitalxero/Desktop/OpenRPG/LinuxLauncher/base/hg_updater.py",
line 114, in install
    self._local.pull(self._remote)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py",
line 1466, in pull
    return self.addchangegroup(cg, 'pull', remote.url())
  File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py",
line 2067, in addchangegroup
    if fl.addgroup(chunkiter, revmap, trp) is None:
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py",
line 1246, in addgroup
    text = self.revision(chain)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py",
line 998, in revision
    bins = [self._chunk(r) for r in xrange(base + 1, rev + 1)]
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py",
line 958, in _chunk
    return decompress(self._chunkraw(rev, rev))
  File "/usr/local/lib/python2.6/dist-packages/mercurial/revlog.py",
line 111, in decompress
    raise RevlogError(_("unknown compression type %r") % t)
mercurial.error.RevlogError: unknown compression type 'M'


Is there any way to achieve what I want or do I just need to make them
install a new version that comes with the .hg directory?


Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com



More information about the Mercurial mailing list