a simple batch action

John Arbash Meinel john at arbash-meinel.com
Tue Apr 6 22:58:03 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marius Kruger wrote:
> On 4 April 2010 23:20, }--o <viktor.nagy at gmail.com> wrote:
>> Hi,
>>
>> I would like to run some simple merge-related actions in a batch, but my
>> code fails after 'Update done'
>> I've put my code at http://python.pastebin.com/NVKafssT
>>
>> could someone have a look, and give me a hand please!
> 
> builtins.cmd_merge() and other commands assumes certain
> initializations done to them when being called from the commandline
> (eg. in run_argv_aliases there is self._setup_outf() ).
> Thus just calling the run method directly does not always work.
> 
> I think you can run the commands with something like
> commands.run_bzr(['merge', '-d', trunk, user])
> 
> or use the lower level api's directly (but isn't practical, because
> too much logic is in the command in stead of lower level apis)
> 
> 
>> Happy easter, pesach, etc to everyone. :)
> thanks you too :-)
> 

In this case I would think it would be reasonable. Given that there are
helpers like:

 tree.update()
and
 tree.merge_from_branch(other_branch)
or
 tree.merge_from_branch(other_tree.branch)
etc.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku7rmsACgkQJdeBCYSNAAMjBwCfWJ4nHgUZLMdSwjq4YyweCrCR
gWwAoNoVvQD96baJ8tBFyTKWsWmklMMr
=omWc
-----END PGP SIGNATURE-----



More information about the bazaar mailing list