mdiff problem and a suggestion
Thomas Arendsen Hein
thomas at intevation.de
Wed Jun 1 16:28:14 UTC 2005
* Radoslaw Szkodzinski <astralstorm at gorzow.mm.pl> [20050601 18:18]:
> 1) convert-repo script doesn't work - the contents of mercurial.mpatch
> can't be imported somehow,
> but it did build and install correctly. Some hack fix attached.
>
> Fix problems with importing mpatch in mdiff.
> -from mercurial.mpatch import *
> +import mercurial.mpatch
This fixes nothing (though "from foo import *" isn't the nicest
thing to do). The real problem vanishes magically, if you move
convert-repo to a different directory, because currently the import
looks relative to the directory where convert-repo is first, and it
finds 'mercurial' there, but this 'mercurial' doesn't have 'mpatch',
because the extension wasn't compiled there.
Just cp convert-repo somewhere else, or add it to the 'scripts' list
in setup.py before running setup.py install.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list