converting a monotone repository
Patrick Mézard
pmezard at gmail.com
Fri Oct 3 01:33:45 CDT 2008
Derek Scherger a écrit :
> 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.
The monotone test (test-convert-mtn) still pass. Are you converting a public repository or can you write a simple script reproducing the issue ?
--
Patrick Mézard
More information about the Mercurial
mailing list