Git development
 help / color / mirror / Atom feed
* Git SVN Rebranching Issue
@ 2008-11-03 14:07 Matt Kern
  2008-11-04  8:41 ` Eric Wong
  0 siblings, 1 reply; 9+ messages in thread
From: Matt Kern @ 2008-11-03 14:07 UTC (permalink / raw)
  To: git

I have a git-svn issue which keeps biting me.

My company uses svn as its primary version control system.  We
frequently create branches, e.g. /branches/somebranch, by forking the
trunk to ensure stability over the "somebranch" code.  The problem is
that we also frequently blow away /branches/somebranch and refork it
from the trunk.

git-svn does a good job for most work, but I notice that if you delete
the "somebranch" branch in svn and then refork it, also in svn, then
when you git-svn fetch, the git commit at the head of remotes/somebranch
will have two parents: the first is the previous head of
remotes/somebranch, and the second is the head of remotes/trunk.  Surely
only the remotes/trunk parent should be listed?  Any connection with the
previous remotes/somebranch is an accident of naming.  The real problem
then comes when you come to look at the history in gitk.  If
"somebranch" is rebranched many times, the git history starts looking
pretty complicated, when in fact it should simply be the linear history
of remotes/trunk up to the branch point followed by a few,
branch-specific commits.  Is there any way to prevent (or modify) the
git history to remove the errant parent?

In the ideal world, we wouldn't reuse branch names in svn, but it is
convenient and doesn't cause problems for svn users.  I can't force the
rest of the company to change to accommodate my use of git...

I am using git (svn) version 1.5.6.5 (svn 1.4.6) from Debian/Lenny and
can provide a trivial repository demonstrating the problem if anyone is
interested.

Matt

-- 
Matt Kern
http://www.undue.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-11-06 20:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 14:07 Git SVN Rebranching Issue Matt Kern
2008-11-04  8:41 ` Eric Wong
2008-11-04  9:42   ` Dmitry Potapov
2008-11-04 10:15     ` Sverre Rabbelier
2008-11-04 11:24     ` Matt Kern
2008-11-05  0:33     ` Eric Wong
2008-11-05  0:40       ` Avery Pennarun
2008-11-06  9:39         ` Eric Wong
2008-11-06 20:48           ` Avery Pennarun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox