emacs-devel
[Top][All Lists]
Advanced

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

Re: Git mirrors


From: Óscar Fuentes
Subject: Re: Git mirrors
Date: Thu, 13 Oct 2011 02:10:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

John Wiegley <address@hidden> writes:

> 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.

Have you considered implementing the above script as a CGI service on
your web server? I don't think that people will need to consult the
service more than a few times per day. A single download of the map file
will use more bandwith than the cgi script on a whole year.



reply via email to

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