Re: Getting correct tree layout when importing svn repo into git
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Sep 17, 2008, 01:18 UTC
- Message-ID
- <20080917011816.GL28210@dpotapov.dyndns.org>
- In-Reply-To
- <c49095e30809161640o21cb89b7x17a9ac1b5b18054f@mail.gmail.com>
On Wed, Sep 17, 2008 at 01:40:36AM +0200, Michael Kerrisk wrote:
Show 5 quoted lines
> > $ git svn init file:///home/mtk/man-pages-rep/ -t tags -T trunk -b branches > > takes about half an hour to run, the other command (which I already > started yesterday) seems to be taking (far) more than a day!
What version of Git do you use? If you use a version earlier than 1.5.6 than you can notice *considerable* speed up by upgrading to the latest version of Git. Also, git-svn does not work well on Windows. Cygwin version is slow due to fork(), and MSYS Git has some other issues with Perl. So, if you want to convert a huge SVN repo, it is better to do on Linux and using the latest version of Git. Perhaps, running on tmpfs may speed up the process even more.
Show 19 quoted lines
> Therefore, so far, I have not had a chance to run the command to > completion to see if it gives the desired result. The greatly > increased tun time also made me suspicious about whether the command > was going to do the right thing. And, I end up with a lot of strange > looking tags in the (as yet incompletely) imported tree: > > $ git branch -a > tags/man-pages-2.00 > tags/man-pages-2.00@117 > tags/man-pages-2.01 > tags/man-pages-2.01@145 > tags/man-pages-2.02 > tags/man-pages-2.02@184 > tags/man-pages-2.03 > tags/man-pages-2.03@232 > tags/man-pages-2.04 > tags/man-pages-2.04@283 > > What are the @nnn tags about?
I have never encounted them. Are you sure that you import into a clean Git repo?
Dmitry