converting a monotone repository
Derek Scherger
derek at echologic.com
Fri Oct 3 04:02:07 UTC 2008
Hi, I've been trying to get the convert extension going on a monotone source
repo but haven't had much luck so far. I do get an hg repo but it seems to
contain no file data. The converted repo does contain revisions and log
messages and such, but running hg log does not list files and hg update does
not make any files available in the workspace.
I don't know much about the hg codebase but I have been poking around and
sticking print lines in here and there to try and see what's going on. I've
made my way into localrepo.py and the _commitctx function and one thing
strikes me as odd here. None of the commits seem to have added files (from
wctx.added()) , only modified files (from wctx.modified()) and it makes me
wonder if the first commit doesn't add the files, can any of the changes
apply?
Another thing I notice is that the getfilectx function defined in putcommit
in convert/hg.py never seems to get called. This appears to be the function
that gets the file content from the source repo and if it isn't called,
well, I can hardly expect any content. Also, putcommit seems to use
context.memctx which has the following comment: "NOTE: this interface and
the related memfilectx are experimental and may change without notice."
which makes me wonder if they have changed since the monotone converter was
initially written.
Anyway, none of this is urgent, I'm just experimenting and it would be great
to get it working.
Thanks for any help!
Cheers,
Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081002/5dc6c5b1/attachment-0001.html>
More information about the Mercurial
mailing list