All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamey Sharp <jamey@minilop.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Junio C Hamano <gitster@pobox.com>,
	git@vger.kernel.org, Josh Triplett <josh@joshtriplett.org>,
	"Shawn O. Pearce" <spearce@spearce.org>,
	Johannes Sixt <johannes.sixt@telecom.at>
Subject: Re: [PATCHv2 1/2] Support multiple virtual repositories with a single object store and refs
Date: Wed, 25 May 2011 08:44:05 -0700	[thread overview]
Message-ID: <20110525154405.GA4839@oh.minilop.net> (raw)
In-Reply-To: <alpine.DEB.1.00.1105250847380.2701@bonsai2>

[-- Attachment #1: Type: text/plain, Size: 2218 bytes --]

On Wed, May 25, 2011 at 08:51:07AM +0200, Johannes Schindelin wrote:
> On Tue, 24 May 2011, Junio C Hamano wrote:
> > Jamey Sharp <jamey@minilop.net> writes:
> > > Given many repositories with copies of the same objects (such as 
> > > branches of the same source), sharing a common object store will avoid 
> > > duplication.  Alternates provide a single baseline, but don't handle 
> > > ongoing activity in the various repositories.  Git safely handles 
> > > concurrent accesses to the same object store across repositories, but 
> > > operations such as gc need to know about all of the refs.
> > >
> > > This change adds support in upload-pack and receive-pack to simulate 
> > > multiple virtual repositories within the object store and references 
> > > of
> > 
> > Is it just me to read the above and then have to re-read the first 
> > sentence of the second paragraph over and over again?  There seems to be 
> > a huge gap in logic flow, probably largely due to the use of undefined 
> > term "virtual repository".
> 
> I had to read the example call to understand that 'virtual repository' 
> means 'one real catch-em-all repository'.
> 
> I wonder about two things, though:
> 
> 1) Would teaching git clone to understand "-t this/repo/*" help?

Sure, that would be an improvement for our use case, but we expect to
have lots of these virtual repositories, so I think we'd rather have the
server-side help we proposed in these patches. Seems to me that
wildcards in git-clone would be nice for other use cases, though.

> 2) You're extending the protocol by appending the prefix after the SHA-1, 
>    and I stopped halfway through the patch trying to find information 
>    which I now think should be in the commit message: a) why? b) why does 
>    it not break when one of the two sides is a previous version?

I don't think we're changing the protocol in any way...? In all of our
tests, the client was Debian's package of git version 1.7.5.1. And note
that none of these patches touch client-side protocol code; it's all in
the server-side upload-pack and receive-pack.

If we have changed the protocol, it was unintentional and we should fix
it.

Jamey

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-05-25 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 21:54 [PATCHv2 1/2] Support multiple virtual repositories with a single object store and refs Jamey Sharp
2011-05-24 21:54 ` [PATCHv2 2/2] Support virtual repositories in smart http-backend, specified by environment Jamey Sharp
2011-05-24 23:10 ` [PATCHv2 1/2] Support multiple virtual repositories with a single object store and refs Junio C Hamano
2011-05-25  6:51   ` Johannes Schindelin
2011-05-25 15:44     ` Jamey Sharp [this message]
2011-05-25 19:43       ` Junio C Hamano
2011-05-25 23:56         ` Johannes Schindelin
2011-05-25 23:53       ` Johannes Schindelin
2011-05-26  0:01         ` Josh Triplett
2011-05-26  0:40           ` Johannes Schindelin
2011-05-26  4:08             ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110525154405.GA4839@oh.minilop.net \
    --to=jamey@minilop.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=johannes.sixt@telecom.at \
    --cc=josh@joshtriplett.org \
    --cc=spearce@spearce.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.