savannah-hackers-public
[Top][All Lists]
Advanced

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

Re: [Savannah-hackers-public] Willing to Assist with Bazaar


From: Assaf Gordon
Subject: Re: [Savannah-hackers-public] Willing to Assist with Bazaar
Date: Thu, 11 Sep 2014 13:29:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 09/11/2014 11:51 AM, Eli Zaretskii wrote:
Date: Thu, 11 Sep 2014 11:36:43 -0400
From: Assaf Gordon <address@hidden>

Eli's previous comment is relevant, perhaps I'm asking the wrong question:
What I'm trying to do is get a commit log from a BZR URL listed on Savannah, 
here:
    http://bzr.savannah.gnu.org/r/

If there's another way which does not involve listing branches, please let me 
know.

I don't think you can get a log of bzr commits, except in the context
of a branch.  Bzr is deeply branch-centric in its philosophy and in
its implementation.  A repo in bzr is just a way to save some disk
storage by keeping commits common to several branches only once.  But
the basic history unit is still a branch, even if you have several of
them in a shared repo.

That said, a branch in bzr is a separate directory, so perhaps you
could simply produce a commit log in each of these directories?  Would
that be enough?  (I guess to answer that you will need to tell what
you intend to do with the log ;-)


That's exactly what I was trying to do... how do I get the list of "each of these 
directories" ?
On the Savannah website they are referred to as branches, but perhaps they are 
just directories.

I'll rephrase the question from a very from a very technical POV:
Given the following URLS of a BZR project (which is what GNU Savannah gives me):
  bzr://bzr.savannah.nongnu.org/gnewsense/
  http://bzr.savannah.nongnu.org/r/gnewsense

How can I tell (programmatically) which sub-directories or branches (or another 
BZR term) do these repositories have?

I've even considered stooping to HTML parsing, like so:

    $ curl --silent http://bzr.savannah.gnu.org/r/gnewsense/ \
       | perl -lne 'm/href="([\w-]+)\/">(\1)\/</ && print $1;'
    builder
    debderiver
    deploy-standard-server
    docs
    gnome-system-tools
    metad-installer
    metad-samgee-proposed
    metad
    mrconfig
    old
    packages-deltah
    packages-parkes-cfr
    packages-parkes
    packages-ucclia
    packages
    parkes
    process-package-lists
    wikimig
    win32-loader

But that's not only ugly, but also insufficient as some of these 
sub-directories are not BZR repositories, but have more sub-directories in them.

My goal is to get a log of all the commits in a bzr repository - to be used for 
more statistics about project activity on GNU Savannah.

My starting point is the list of BZR projects on GNU Savannah:
   http://bzr.savannah.gnu.org/r/

My end goal is a the commit log of each project.


Thanks,
 - Assaf





reply via email to

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