How do I ...

Simon King simon at simonking.org.uk
Mon Jan 18 03:12:59 CST 2016


On Fri, Jan 15, 2016 at 9:40 PM, Lester Caine <lester at lsces.co.uk> wrote:

> On 15/01/16 16:54, Simon King wrote:
> >     But would still like to do the same off the local hg repo?
> >
> > The convert extension can do an hg-to-hg conversion. To only convert a
> > single directory you'd pass a filemap with an include rule that
> > specifies just that directory:
> >
> > https://www.mercurial-scm.org/wiki/ConvertExtension#A--filemap
>
> Created 'filter' file
> ---
> include "phpGedView/."
> exclude"conf"
> exclude"db"
> exclude"distribution"
> exclude"fomat"
> exclude"hooks"
> exclude"locks"
> exclude"PhPGedcom"
> exclude"README.txt"
> ---
>
>
Aside: I don't think you need all those "exclude" directives. From "hg help
convert":

    The default if there are no ``include`` statements is to
    include everything. If there are any ``include`` statements,
    nothing else is included.



> Basically exclude everything but phpGedView directory and include all of
> that?
>
> Sitting in the /srv/repo directory as working dir
>
> hg convert phpgedview-svn pgv-web --filemap filter
>
> but get
> abort: log stream exception '160006 - No such revision 1'
>
> ( for the record the svn filtered clone took 5 hours in all )
>

"log stream exception" appears to be in the subversion conversion code (
https://selenic.com/hg/file/tip/hgext/convert/subversion.py#l169) - I
thought you were trying to perform an hg-to-hg conversion here?

Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20160118/25efa9d6/attachment.html>


More information about the Mercurial mailing list