Trying to fork/import from Git is kinda problematic.  I started by
creating a new project on a server:

    $ fossil init projectname.fossil

I then cloned locally:

    $ fossil clone <[email protected]/projectname/index.cgi> projectname.fossil

I imported from Git:

    $ git fast-export --all | fossil import --git --incremental \
    /path/to/projectname.fossil

I opened the repository:

    $ mkdir projectname; cd projectname
    fossil open /path/to/projectname.fossil

No files appear.  I looked at the timeline:

    $ fossil timeline
    === 2014-03-04 ===
    20:24:06 [178338650a] *CURRENT* initial empty check-in (user:
    apotheon tags: trunk)
    === 2013-06-19 ===
    21:12:33 [34ca661224] <last commit message from Git>
    === 2011-10-16 ===
    . . . et cetera

The obvious choice seems to be to use revert:

    $ fossil help revert
    Usage: fossil revert ?-r REVISION? ?FILE ...?

    Revert to the current repository version of FILE, or to
    the version associated with baseline REVISION if the -r flag
    appears.

    [. . .]

    Revert all files if no file name is provided.

    [. . .]

I tried that:

    $ fossil revert -r 34ca661224
    the --revision option does not work for the entire tree

How do I actually get a repository import to a usable state so I can
push it to the server's repository and get on with my life?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to