git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-svn mirror in bare repo
@ 2010-08-23 12:24 Enrico Weigelt
  2010-08-23 12:58 ` Michael J Gruber
  2010-08-28 16:45 ` Wesley J. Landaker
  0 siblings, 2 replies; 5+ messages in thread
From: Enrico Weigelt @ 2010-08-23 12:24 UTC (permalink / raw)
  To: git


Hi folks,

is it possible to use git-svn w/ an bare repository (eg. using
an temporary workdir when necessary or directly creating tree
and commit objects w/o going through workdir at all) ?

I'm running a dozen of mirrors (also from cvs), some from fairly
large and I'd like to get rid of the working copies.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

* Re: git-svn mirror in bare repo
  2010-08-23 12:24 git-svn mirror in bare repo Enrico Weigelt
@ 2010-08-23 12:58 ` Michael J Gruber
  2010-08-23 13:13   ` Enrico Weigelt
  2010-08-28 16:45 ` Wesley J. Landaker
  1 sibling, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2010-08-23 12:58 UTC (permalink / raw)
  To: git; +Cc: weigelt

Enrico Weigelt venit, vidit, dixit 23.08.2010 14:24:
> 
> Hi folks,
> 
> is it possible to use git-svn w/ an bare repository (eg. using
> an temporary workdir when necessary or directly creating tree
> and commit objects w/o going through workdir at all) ?

No.

> I'm running a dozen of mirrors (also from cvs), some from fairly
> large and I'd like to get rid of the working copies.

Your only option is a different conversion tool. GSoC resulted in a lot
of code in this direction, but I'm not sure it can do without a workdir.
It is based on svndump

Michael

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

* Re: git-svn mirror in bare repo
  2010-08-23 12:58 ` Michael J Gruber
@ 2010-08-23 13:13   ` Enrico Weigelt
  2010-08-23 15:05     ` Michael J Gruber
  0 siblings, 1 reply; 5+ messages in thread
From: Enrico Weigelt @ 2010-08-23 13:13 UTC (permalink / raw)
  To: git

* Michael J Gruber <git@drmicha.warpmail.net> wrote:
> Enrico Weigelt venit, vidit, dixit 23.08.2010 14:24:
> > 
> > Hi folks,
> > 
> > is it possible to use git-svn w/ an bare repository (eg. using
> > an temporary workdir when necessary or directly creating tree
> > and commit objects w/o going through workdir at all) ?
> 
> No.

hmm, can it work with an external workdir ?

> > I'm running a dozen of mirrors (also from cvs), some from fairly
> > large and I'd like to get rid of the working copies.
> 
> Your only option is a different conversion tool. GSoC resulted in a lot
> of code in this direction, but I'm not sure it can do without a workdir.
> It is based on svndump

I guess that requires access to the raw repository (on the server),
not just unprivileged svn client access, right ?


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

* Re: git-svn mirror in bare repo
  2010-08-23 13:13   ` Enrico Weigelt
@ 2010-08-23 15:05     ` Michael J Gruber
  0 siblings, 0 replies; 5+ messages in thread
From: Michael J Gruber @ 2010-08-23 15:05 UTC (permalink / raw)
  To: git; +Cc: weigelt

Enrico Weigelt venit, vidit, dixit 23.08.2010 15:13:
> * Michael J Gruber <git@drmicha.warpmail.net> wrote:
>> Enrico Weigelt venit, vidit, dixit 23.08.2010 14:24:
>>>
>>> Hi folks,
>>>
>>> is it possible to use git-svn w/ an bare repository (eg. using
>>> an temporary workdir when necessary or directly creating tree
>>> and commit objects w/o going through workdir at all) ?
>>
>> No.
> 
> hmm, can it work with an external workdir ?

You can have the workdir anywhere you like by using the core.worktree
setting. So, if you mind the size requirements you can put it onto some
fast tempdir (tmpfs, say). In fact, if all you do is "git svn fetch"
then git svn may not even notice a missing worktree (would have to try).
"git svn rebase" does need a worktree.

> 
>>> I'm running a dozen of mirrors (also from cvs), some from fairly
>>> large and I'd like to get rid of the working copies.
>>
>> Your only option is a different conversion tool. GSoC resulted in a lot
>> of code in this direction, but I'm not sure it can do without a workdir.
>> It is based on svndump
> 
> I guess that requires access to the raw repository (on the server),
> not just unprivileged svn client access, right ?

In fact, Ram's GSoC project started off with svnrdump which is now part
of the subversion code base (i.e. in their trunk). It is basically
"svndump remote", i.e. a client outputting svn dump format.

Michael

P.S.: We usually keep cc's when replying here.

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

* Re: git-svn mirror in bare repo
  2010-08-23 12:24 git-svn mirror in bare repo Enrico Weigelt
  2010-08-23 12:58 ` Michael J Gruber
@ 2010-08-28 16:45 ` Wesley J. Landaker
  1 sibling, 0 replies; 5+ messages in thread
From: Wesley J. Landaker @ 2010-08-28 16:45 UTC (permalink / raw)
  To: git, weigelt

On 08/23/2010 05:24 AM, Enrico Weigelt wrote:
> is it possible to use git-svn w/ an bare repository (eg. using
> an temporary workdir when necessary or directly creating tree
> and commit objects w/o going through workdir at all) ?
> 
> I'm running a dozen of mirrors (also from cvs), some from fairly
> large and I'd like to get rid of the working copies.

When I have a large repository with git-svn that I only occasionally
want to use the working copy of it, here is what I do:

1) git svn clone the SVN repository normally
2) Create an "empty" branch with no files ("git checkout --orphan")

When I want to update SVN, I do:

  git checkout trunk
  git svn rebase
  git checkout empty

When I want to push something to SVN I do:

  git checkout trunk
  git svn dcommit
  git checkout empty

This makes it work sort of like a bare repository, but it still works
with git-svn. I use this when I have a bunch of SVN repositories I need
to be able to work with quickly at any time, but I don't want to waste
the disk space having all of their working copies checked out
simultaneously.

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

end of thread, other threads:[~2010-08-28 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 12:24 git-svn mirror in bare repo Enrico Weigelt
2010-08-23 12:58 ` Michael J Gruber
2010-08-23 13:13   ` Enrico Weigelt
2010-08-23 15:05     ` Michael J Gruber
2010-08-28 16:45 ` Wesley J. Landaker

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).