git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
	Sverre Rabbelier <srabbelier@gmail.com>
Subject: Re: [PATCH 2/2] transport-helper: update remote helper namespace
Date: Thu, 11 Apr 2013 00:18:08 -0500	[thread overview]
Message-ID: <CAMP44s1LF46VU0E4W=r-qog3JY+Y-qyYGfkqxLEnTG8X8GoWOA@mail.gmail.com> (raw)
In-Reply-To: <20130411050509.GC27795@sigill.intra.peff.net>

On Thu, Apr 11, 2013 at 12:05 AM, Jeff King <peff@peff.net> wrote:
> On Wed, Apr 10, 2013 at 11:53:38PM -0500, Felipe Contreras wrote:
>
>> > But if we push some commits to the helper, moving Y up to Z, then it
>> > would build the new commit (which contains the foreign-vcs's equivalent of
>> > Y..Z) on top of Z, not Y.
>>
>> Why would it do that? If X points to say revision 100, presumably it
>> was stored somewhere while doing a fetch. Similarly, if foreign
>> version of Z is 150, it can update that number while doing a push. The
>> next fetch it would start from 151.
>
> I think the only reason not to bump the marker forward during the push
> would be if the helper wants for some reason to "re-import" from the
> foreign source rather than accepting the git versions of the commits.
> Something like git-svn's markup of the commit messages with revision ids
> comes to mind.

Yeah, but that's already a second level hypothesis. First,
remote-helpers would need to be able to work without marks, and they
can't.

> But if it matters, then by definition that would mean
> that the import/export is not bidirectionally clean.

I don't see how would that matter.

> So I can buy the argument that bumping it forward ourselves will not
> matter for any well-implemented helper.

Or any helper.

> That is the sort of thing that might be helpful to include in the commit
> message; if somebody does run across such a helper and bisects to your
> commit, then they can understand the rationale for the decision.

If it did matter, it would be mentioned. I will updated it later if
there's no further comments.

--
Felipe Contreras

  reply	other threads:[~2013-04-11  5:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11  0:07 [PATCH 0/2] transport-helper: general fixes Felipe Contreras
2013-04-11  0:07 ` [PATCH 1/2] transport-helper: improve push messages Felipe Contreras
2013-04-11  3:41   ` Jeff King
2013-04-11  0:07 ` [PATCH 2/2] transport-helper: update remote helper namespace Felipe Contreras
2013-04-11  4:33   ` Jeff King
2013-04-11  4:53     ` Felipe Contreras
2013-04-11  5:05       ` Jeff King
2013-04-11  5:18         ` Felipe Contreras [this message]
2013-04-13  6:00           ` Felipe Contreras
2013-04-14  5:13             ` Junio C Hamano
2013-04-14 15:42               ` Felipe Contreras
2013-04-14 18:45                 ` Junio C Hamano
2013-04-14 19:00                   ` Jeff King
2013-04-16  0:56                   ` Jonathan Nieder

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='CAMP44s1LF46VU0E4W=r-qog3JY+Y-qyYGfkqxLEnTG8X8GoWOA@mail.gmail.com' \
    --to=felipe.contreras@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    --cc=srabbelier@gmail.com \
    /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 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).