git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add SVN->Git conversion example to documentation

From
HOHeikki Orsila <shd@modeemi.fi>
Date
Jun 18, 2008, 00:55 UTC
Message-ID
<20080618005555.GB5930@jolt.modeemi.cs.tut.fi>
In-Reply-To
<7viqw74phb.fsf@gitster.siamese.dyndns.org>
On Tue, Jun 17, 2008 at 04:21:36PM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> > -git-svn is a simple conduit for changesets between Subversion and git.
> > -It is not to be confused with linkgit:git-svnimport[1], which is
> > -read-only.
> > +git-svn is a simple bidirectional conduit for changesets between
> > +Subversion and git. It is used to develop projects with Git tools,
> > +but commit changes to a Subversion repository. It can also be used to
> 
> That is correct but doesn't the above give a false impression that commits
> are only made on subversion side and never on git side?
Hmm.. I'll try to make it more explicity. Will send another patch soon.
Show 8 quoted lines
> > +convert a Subversion repository to a Git repository. It should not
> > +be confused with linkgit:git-svnimport[1], which does Subversion to
> > +Git conversion, but not the other direction.
> 
> We do not ship nor document svnimport anymore and linkgit: there is
> actively wrong.  People seem to be confused with ancient documents still
> floating on the Web that talk about svnimport, and I think it is a good
> idea to try to clear the confusion here, but perhaps...
OK, I will not mention svnimport in the next patch.
Show 20 quoted lines
> 	... with the deprecated `git-svnimport`, which was used for
> 	one-way conversion from Subversion to git.
> 
> > @@ -520,6 +523,38 @@ have each person clone that repository with 'git clone':
> >  	git-svn rebase
> >  ------------------------------------------------------------------------
> >  
> > +CONVERTING A SUBVERSION REPOSITORY TO A GIT REPOSITORY
> > +------------------------------------------------------
> > +
> > +When converting a Subversion repository to a Git repository
> > +--no-metadata removes "git-svn-id:" comments from the log.
> > +-A option is used to convert SVN pseudonyms to real names
> 
> Anything that user usually would type on the command line it is preferred
> to typeset with `quoted like this`, so "`--no-metadata`" and "`-A` option".
> 
> It is not `--no-metadata` "removes".  git-svn adds cruft because it wants
> to use it for bidi operation, but --no-metadata prevents it from doing
> so.
OK
-- 
Heikki Orsila
heikki.orsila@iki.fi
http://www.iki.fi/shd
Previous: Junio C Hamano
Message 4 of 4 in “Add SVN->Git conversion example to documentation”
  1. Add SVN->Git conversion example to documentationHeikki Orsila, Jun 14, 2008
  2. Miklos VajnaJun 14, 2008
  3. Junio C HamanoJun 17, 2008
  4. Heikki OrsilaJun 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.