emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Git mirrors


From: John Wiegley
Subject: Re: Git mirrors
Date: Wed, 12 Oct 2011 18:57:35 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin)

>>>>> Óscar Fuentes <address@hidden> writes:

> Well, if you wish to follow that route, this is the actual command you
> should use:

> bzr log --show-ids -n 0

> Without the `-n 0', the output only includes the leftmost part of the DAG.

> With this command:

> bzr log --show-ids -n 0 --short

> the number of emitted lines is halved, but it executes about 15% *slower*
> and the format is different, not necessarily more difficult to parse.

This was still too slow for something that must run on every branch, for every
hour.  Instead, I'm making a file available which maps Bzr revision ids to Git
commits:

  http://ftp.newartisans.com/pub/emacs/commit-map.txt.gz

Each individual will have to map Git commits to Bzr revision ids to Bzr rev
numbers as needed.  I.e., with bash:

  commit_to_id() {
    bzr revision-info $(zgrep " $1" commit-map.txt.gz \
                          | awk '{print $1}') \
      | awk '{print $1}'
  }

  echo $(commit_to_id f32fa9ed)

The other files have been taken down, since they do not add any information.

Also, please copy this file to your local machine when you really need to
update it.  Bandwidth costs and I'm not sure yet how much this will add up.

Thanks, John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]