Using bzr with bzr repository

Alexander Belchenko bialix at ukr.net
Wed Nov 16 10:42:22 GMT 2005


Alexey Shamrin пишет:
> How do you use bzr to work with repository which has bzrlib directory?
> 
> If I run "bzr", current directory gets added to sys.path, making bzr
> script to import bzrlib from the current directory. Trying to remove
> all occurences of current dir in sys.path I put the following code in
> the beginning of bzr script:
> 
> try:
>     while True:
>         sys.path.remove(os.getcwd())
> except ValueError:
>     pass
> 
> But this doesn't fully work. For example, when I run "bzr check"
> inside the directory bzr.win32 and press Ctrl-C, I get the following
> in the log:

...
[skip]
...
> Look at how it references *both* bzr.win32 and bzr.dev. What is more,
> I don't have bzr.dev directory... :-/

Remove all *.pyc files from bzrlib. Compiled bytecode has inside 
reference to their source *.py.

Alexander





More information about the bazaar mailing list