On Tue, Mar 04, 2014 at 03:47:31PM -0500, Richard Hipp wrote:
> On Tue, Mar 4, 2014 at 3:43 PM, Chad Perrin <c...@apotheon.net> wrote:
> 
> > 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 <u...@uri.for/projectname/index.cgi> projectname.fossil
> >

Doesn't the git import create the fossil repo for you? Maybe you should
try doing the import into a fossil repo that doesn't already exist.

Then you can scp that repo to your server and clone it down.

> > 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
> >
> 
> The above should be all you need to do.  It should just work.  And it does
> "just work" for every git repository that I've tried, though that is,
> admittedly, not that many repos.
> 
> If you are willing to share with us the specific repo you are trying to
> import, prehaps the developers can try it and discover what's going wrong.
> 
> 
> 
> >
> > 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
> > fossil-users@lists.fossil-scm.org
> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> >
> 
> 
> 
> -- 
> D. Richard Hipp
> d...@sqlite.org

> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


-- 
James Turner
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to