From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Git mirrors Date: Thu, 13 Oct 2011 01:06:44 +0200 Message-ID: <87pqi1dd2z.fsf@wanadoo.es> References: <8762k095n4.fsf@lifelogs.com> <871uuksdxi.fsf@lifelogs.com> <83lissxj9a.fsf@gnu.org> <87k48by7ex.fsf@lifelogs.com> <83sjmywqc6.fsf@gnu.org> <877h49evsi.fsf@wanadoo.es> <83wrc93m42.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318460818 23286 80.91.229.12 (12 Oct 2011 23:06:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 23:06:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 13 01:06:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE7sz-0002ur-Vw for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2011 01:06:54 +0200 Original-Received: from localhost ([::1]:47245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE7sz-0004wk-7t for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 19:06:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE7sw-0004wf-T5 for emacs-devel@gnu.org; Wed, 12 Oct 2011 19:06:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE7sv-0005Vb-N0 for emacs-devel@gnu.org; Wed, 12 Oct 2011 19:06:50 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.20]:47148 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE7sv-0005VK-98 for emacs-devel@gnu.org; Wed, 12 Oct 2011 19:06:49 -0400 Original-Received: from IMPmailhost1.adm.correo ([10.20.102.38]) by IMPaqm4.telefonica.net with bizsmtp id jz0r1h0070piX6q3Qz6ney; Thu, 13 Oct 2011 01:06:47 +0200 Original-Received: from qcore ([83.45.165.175]) by IMPmailhost1.adm.correo with BIZ IMP id jz6l1h0093nNm431hz6m5f; Thu, 13 Oct 2011 01:06:46 +0200 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: (John Wiegley's message of "Wed, 12 Oct 2011 17:35:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.4.138.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145073 Archived-At: John Wiegley writes: >>>>>> Eli Zaretskii writes: > >> bzr revision-info cyd@stupidchicken.com-20090609183929-nuq8sa1d8pep960t > >> produces output that is easier to parse: > >> 96032 cyd@stupidchicken.com-20090609183929-nuq8sa1d8pep960t > > Wow. On my VPS, doing this a single time takes 16 seconds. Plus, I have to > do it within the right branch, which means that programmatically, I'll have to > do everyone within every branch. That would take a little over a year. > > Is there not a better to do this? As mentioned on my previous post, do a `bzr log --show-ids' and harvest the revision numbers and revision ids from there. Here, a single `bzr revision-info ...' takes 8 seconds, but a full `bzr log --show-ids' takes only 30. Add a few seconds more for retrieving the numbers/ids, and you are done in less than a minute (which still seems a lot to me, but YMMV) > Maybe with some Python code that accesses > the repository info directly and can turn a file full of rev-info's into the > corresponding output? Then I could add a method that only outputs the new > ones. This is an interesting path. Hacking the bzr sources is easy and fun. But this is not the right place for your question. When I participated there, the guys on the bazaar ml used to be quite collaborative with this sort of questions. However, as confirmed by Eli, what you already provided is good enough.