Uniform way to launch bzr in subprocess.
Martin Pool
mbp at canonical.com
Wed Sep 22 04:13:35 BST 2010
On 22 September 2010 02:45, INADA Naoki <songofacandy at gmail.com> wrote:
> Hi, all.
> Recently, qbzr and TortoiseBZR faces a bug relates how to launch a bzr
> subprocess.
> (see https://bugs.launchpad.net/tortoisebzr/+bug/641557)
>
> qbzr 0.19.1 and before uses sys.argv[0] to executable and
> tbzrcommand.exe replaces it.
> Bazaar Explorer also finds executable sys.argv[0] it's own way.
>
> What's the correct way to call bzr plugin from application that is not bzr and
> bzr plugins calls bzr as subprocess?
We do have 'run_bzr_subprocess' used by tests, but it may not handle
all these cases, and testing may be a bit different.
I guess the correct way depends on digesting all the special cases and
caveats in those bugs and the existing code. Once we do know the best
way to do it, I would like to get that into a function in bzrlib
itself to avoid unnecessary divergence in future.
--
Martin
More information about the bazaar
mailing list