Best way to check if file is under Bazaar's control from a script

Nicholas Allen nick.allen at onlinehome.de
Sun Sep 7 11:07:25 BST 2008


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

Hi,

I would like to know if a given file is under Bazaar version control or
not (i.e it exists in Bazaar's repository) from a script (actually my
Eclipse plugin which just executes Bazaar commands).

What is the best way to do this? I could just do bzr ls --versioned
path/to/file and see if anything is printed to stdout. Is that the
easiest way?

Cheers,

Nick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIw6fd1+i51gqqEGkRAi4sAJ9j3BAQ4Rpf7FedbY+AddXfNBgIhgCgn+3L
hpYKSiD416I4NpU8PSs4xWM=
=5Upy
-----END PGP SIGNATURE-----



More information about the bazaar mailing list