> In the process, I stumbled across the fact that build numbers are not
> being updated. The old code relied on the cvs $Revision field, but
> bzr doesn't update that. That doesn't seem surprising given the
> differences between bzr and cvs.
Every time you do a build, you could run "bzr version-info" and put
the output in a file. E.g., for doing the bzr snapshots of the debs, I
run the following ileo script:
verinfo= !bzr version-info
bzr_revno = verinfo.grep('revno').fields(1)[0]
--
Ville M. Vainio
http://tinyurl.com/vainio
Every time you do a build, you could run "bzr version-info" and put
the output in a file. E.g., for doing the bzr snapshots of the debs, I
run the following ileo script:
verinfo= !bzr version-info
bzr_revno = verinfo.grep('revno').fields(1)[0]
QQQ
from bzrlib import branch
def post_push_hook(push_result):
print "The new revno is %d" % push_result.new_revno
branch.Branch.hooks.install_named_hook(
'post_push', post_push_hook,
'My post_push hook')
QQQ
What I'd like is to have the script alter the revision number in leoVersion.py, but I'd settle for altering a revision number in, say, leoVersion.txt.
> An easier way to print the revision is simply bzr revno.
Ah, I had missed it.
One thing to investigate might be this:
http://bazaar-vcs.org/KeywordExpansion
> I'm not sure whether continually updating leoVersion.txt is going to cause a
> problem with merges...
I still think you should upgrade it occasionally by a script. If the
nightly tarball thing is using bzr (well, it pretty much has to ;-),
it can update it as well.
I still think you should upgrade it occasionally by a script. If the
On Sun, Jul 19, 2009 at 10:42 PM, Edward K. Ream<edre...@gmail.com> wrote:
> I'm not sure whether continually updating leoVersion.txt is going to cause a
> problem with merges...
nightly tarball thing is using bzr (well, it pretty much has to ;-),
it can update it as well.