How to use bzr inside a python script.

Mariano Mara mmara at fibertel.com.ar
Fri Feb 2 17:29:33 GMT 2007


Matthew Hannigan escribió:
> Care to share the python code? :-)
>
> To run bzr from within python, I think you can take inspiration
> from the testsuite.
>
> Regards,
> Matt
>
>   
You mean the oracle+python code? No problem at all. I'm marianom in irc 
and I'm always in #bzr. Just let me know and we talk about it.
> On Thu, Feb 01, 2007 at 07:43:45PM -0300, Mariano Mara wrote:
>   
>> Hi everyone,
>> I wrote this Python script that basically connects to an Oracle schema, 
>> retrieves the whole model and then creates a DML script (let's call it 
>> output.sql) that can be use to install elsewhere the schema. I want 
>> output.sql to be versioned with bzr and for that users have an option in 
>> case they want to commit the new output.sql into a branch.
>> My doubt is: how can I call bzr commands from within the python script? 
>> Can I use it as a imported module? If so, how? or do I need to use it  
>> as command lines commands?
>>
>> If you can point me to some documents addressing this kind  of 
>> information, I'll appreciate it.
>> Regards
>>
>>
>>     






More information about the bazaar mailing list