From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Git mirror - bidrectional Date: Thu, 14 Jan 2010 02:14:54 +0900 Message-ID: <87vdf60vw1.fsf@uwakimon.sk.tsukuba.ac.jp> References: <877hs6bavz.fsf@catnip.gol.com> <2ACCA862-B70E-4D57-AF88-B36E6DF62FE1@gmail.com> <50BB0D44-FCA5-40C1-BDF7-87D1EE77551D@raeburn.org> <2159406C-36DD-4254-BE2A-E3EFCB32013B@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263402887 5976 80.91.229.12 (13 Jan 2010 17:14:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 17:14:47 +0000 (UTC) Cc: Ken Raeburn , "emacs-devel@gnu.org discussions" To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 13 18:14:39 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NV6nj-0007fW-ER for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 18:14:35 +0100 Original-Received: from localhost ([127.0.0.1]:50963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV6nj-0002RT-KQ for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 12:14:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV6fu-0005lZ-08 for emacs-devel@gnu.org; Wed, 13 Jan 2010 12:06:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV6fq-0005jA-0o for emacs-devel@gnu.org; Wed, 13 Jan 2010 12:06:29 -0500 Original-Received: from [199.232.76.173] (port=33318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV6fp-0005j3-Ll for emacs-devel@gnu.org; Wed, 13 Jan 2010 12:06:25 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:42292) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV6fo-00075E-Iv for emacs-devel@gnu.org; Wed, 13 Jan 2010 12:06:25 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9E4248214; Thu, 14 Jan 2010 02:06:17 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 10AEE1A2C00; Thu, 14 Jan 2010 02:14:55 +0900 (JST) In-Reply-To: <2159406C-36DD-4254-BE2A-E3EFCB32013B@gmail.com> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 1444e28f1a3d XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119924 Archived-At: David Reitter writes: > Looking at the documentation, I see that the "update" hook is > designed to do just that. When a remote repository does a push, > the new revisions are sent to the repository, but before the ref > (i.e. branch pointer) is updated, this hook is invoked. It can > prevent the update to the ref. Ah, this is better than what I just suggested. The doc for receive-pack isn't as clear as that for hooks. The main thing that worries me in any such process is that bzr can take a relatively long time to do a push. > What happens when the changes that originated on the git side are > re-imported to the git repository? Would we get double revisions? I think not. This is the point of the fastimport format. Although it's possible that some metadata present in git objects is not supplied by bzr. In that case you would. > Also, would importing sidestep the new revisions on the git side > because the "marks" file points to an earlier previous revision? I don't understand precisely what you mean by "importing", "sidestep", or "new revisions on the git side".