<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I've recently downloaded and installed this:<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"> bzr branch lp:bzr-keywords</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Here's my bzr version info:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px;
font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">matt@meteor:cpp$ bzr --version<br>Bazaar (bzr) 2.5.1<br> Python interpreter: /usr/bin/python 2.6.5<br> Python standard library: /usr/lib/python2.6<br> Platform: Linux-2.6.32-45-generic-i686-with-Ubuntu-10.04-lucid<br> bzrlib: /usr/lib/pymodules/python2.6/bzrlib<br> Bazaar configuration: /home/matt/.bazaar<br> Bazaar log file: /home/matt/.bzr.log<br><br><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">THE PROBLEM:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">Some keywords seem to work, and others do not. Can anyone explain this result for my initial commit-and-update cycle (where I was just trying out all the documented keywords)? The first four tags are failing for some reason.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"># $Date: (evaluation error) $<br># $Committer: (evaluation error) $<br># $Authors: (evaluation error) $<br></span><span style="font-weight: bold;"># $Revision-Id$<br></span># $Path: cpp/SConstruct $<br># $Filename: SConstruct $<br># $Directory: cpp $<br># $File-Id: sconstruct-20130130234613-01rcjondtjg69hz1-1 $<br># $Now: Sat
2013-03-02 10:53:46 +0700 $<br># $User: Matthew Busche <matt@meteor.mattbusche.org> $<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">THE QUESTION:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">What I'd really like to be able to get in my file is the branch name, since for my setup the branch name is the software version number. I went so far as to try to hack keywords.py to add a new keyword that
shells out via a Popen call to try to get the branch number from a bzr info call, but that fails in more way than one -- most significantly due to deadlock between the parent and child process. Is there some internal python data structure from which i can read the branch name? Failing this, I'm stuck with the prospect of using my build environment to do the substitutions -- which is just a bit more cumbersome.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Thanks,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Matt<br></div></div></body></html>