python - Bazaar:Adding WorkingTree specific metadata -
i able set/get custom attributes related working tree in bzr. these attributes used when start build of source in particular working tree. example, our software uses postgresql db instance, , each build (within working tree/branch) needs able 'know' db instance relates name/host/port: devdb, stabledb, stablerev010db etc...
i don't want set of these attributes in file under bzr's control. have made custom 'make_branch.py' script able create working tree/branch source url, , add together options able set these custom attributes when making new branch script.
does have suggestions? bzrlib documentation thorough, can't seem pinpoint how achieved through current api.
why not store meta info in files , mark files ignored using bzr ignore
or editing .bzrignore
? if not suitable you, please explain why.
as per storing kind of unversioned attributes, closest thing i've seen in bzr-svn
documentation: http://doc.bazaar.canonical.com/migration/en/foreign/bzr-on-svn-projects.html#versioned-properties
subversion has concept of versioned properties not nowadays in bazaar. means bzr-svn cannot set versioned properties, such as: svn:keywords, svn:eol-style, , svn:mime-type.
bzr-svn, however, preserve versioned properties nowadays on files.
that is, there no versioned properties in bazaar, that's fine because don't want version them anyway. plugin preserves lot of subversion meta data, indeed there must api methods that. however, though these meta info not versioned, still stored within repository, 1 time again not want.
i haven't read api docs, did user guide, , there no mention of functionality looking for. said, bazaar is extensible, maybe there way using api.
i recommend inquire around on irc channel #bzr on irc.freenode.net. seek search in irc logs @ http://irclogs.ubuntu.com
python bazaar
No comments:
Post a Comment