How to use bzr inside a python script.

Mariano Mara mmara at fibertel.com.ar
Thu Feb 1 22:43:45 GMT 2007


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