Accessing revision information without bzr

Asked by Heinrich Flugelhorn

Hi,

We got Bazaar repository hosted (through FTP) on a server where only php scripts can be executed. We need to get information about the last revision on the server.

In Subversion, the folder db/revprops contains a file for each revision, where the author, the date and the commit message are stored.

Is there also a way to get this information from a Bazaar's repository folder, without using bzr ?

The author's email and the date of the last revision are put inside branch/last-revision, but I haven't been able to understand how/where the commit message are stored.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Jelmer Vernooij
Solved:
Last query:
Last reply:
Revision history for this message
Best Jelmer Vernooij (jelmer) said :
#1

On Thu, 2011-06-02 at 10:50 +0000, Heinrich Flugelhorn wrote:
> We got Bazaar repository hosted (through FTP) on a server where only php scripts can be executed. We need to get information about the last revision on the server.
>
> In Subversion, the folder db/revprops contains a file for each revision, where the author, the date and the commit message are stored.
>
> Is there also a way to get this information from a Bazaar's repository folder, without using bzr ?
>
> The author's email and the date of the last revision are put inside branch/last-revision, but I haven't been able to understand how/where the commit message are stored.
That sort of information is in the pack files in .bzr/repository/; it's
nontrivial to parse these files to find the commit message of a
revision, without going through bzrlib.

Perhaps it would be a possibility to write a bzr plugin that dumps the
commit message to a file on disk on the server somewhere when it does a
push?

Cheers,

Jelmer

Revision history for this message
Heinrich Flugelhorn (fbe546) said :
#2

Thanks Jelmer Vernooij, that solved my question.

Revision history for this message
Heinrich Flugelhorn (fbe546) said :
#3

As you suggested, I wrote a plugin to send revision information through http after each commit.

It works perfectly, thank you :)