I would like to be able to set/get some custom attributes related to a working tree in bzr. These attributes could be used when I would start a build of the source in a particular working tree. For example, our software uses a PostgreSQL DB instance, and each Build (within a working tree/branch) needs to be able to 'know' which DB instance it relates to by name/host/port: DevDB, StableDB, StableRev010DB etc...
I don't want to put any of these attributes in a file under bzr's control. I already have made a custom 'make_branch.py' script which is able to make a working tree/branch from a source URL, and would like to add some options to be able to set these custom attributes when a making a new branch with my script.
Does anyone have suggestions? Bzrlib documentation is very thorough, but I can't seem to pinpoint how this could be achieved through the current API.