git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn project shuffle
@ 2010-10-04 18:36 Christopher Snapp
  2010-10-04 18:54 ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Snapp @ 2010-10-04 18:36 UTC (permalink / raw)
  To: git

I have used git to interface with an svn repo for some time quite
successfully, but today I've run into a scenario that I'm not sure how
to solve.

The situation is this:
* I have a project (let's call it "oldproj") that has its own
branches, tags, and trunk svn structure
* oldproj is checked out using git svn clone --stdlayout and all has been swell
* due to a CM shuffle oldproj's svn trunk has been copied to a new svn
project (let's call it newproj), so oldproj/trunk has been copied to
newproj/trunk/oldproj
* oldproj's branches and tags directories have been "archived",
meaning it isn't CM guy's intention to bring them over to the newproj
structure.  I don't mind losing the contents of the oldproj's branches
and tags, but I'm not sure how to transition to newproj using my
already checked out git svn clone

My questions are:
# If I try to start from scratch by using git svn clone --stdlayout
the "newproj" location I lose all of the revision history associated
with "oldproj/trunk" that has been copied to newproj/trunk/oldproj.
How can I have git understand the history for the
newproj/trunk/oldproj location?

# An alternative would be if I could somehow reconfigure my already
checked out oldproj git repo so I retain all of the version history
and my local branches and can move forward checking code into the
newproj/trunk/oldproj location?

Regarding the second question, I'd be concerned that the loss of the
branches and tags from the oldproj would confuse things in the future
as the newproj branches and tags are new.

This is probably a simple scenario that many have bumped into but my
searches have so far come up blank.

Thanks very much for any guidance or pointers to previous discussions
regarding this scenario.

--
Chris

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

end of thread, other threads:[~2010-10-15 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04 18:36 git svn project shuffle Christopher Snapp
2010-10-04 18:54 ` Jonathan Nieder
2010-10-13 13:41   ` Christopher Snapp
2010-10-15 16:48     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).