bzr on Windows

Robert Collins robertc at robertcollins.net
Fri Sep 23 10:28:28 BST 2005


On Sun, 2005-09-04 at 00:43 +0300, Alexander Belchenko wrote:
> Hi!
> 
> (Please, Sorry for my poor english).

Your english is fine :).

> I want to use bzr on Windows, so I try it. I spending two days for fix
> all non cross platform issues in bzr-0.0.6. I use bzr selftest as
> indicator of correct work.
> 
> Sadly, but in bzr-0.0.7 merge test is not working on Windows (seems that
> merge itself not working), so I roll back to 0.0.6. May be I have not
> some important third-party tools?
> 
> Only one test (testing permissions) will not pass in 0.0.6 at this
> moment (I skip it). Other test passed. Patch for win-related fixes is
> attached.

I have applied much of the patch, however a lot of it caused conflicts.
So I need to ask if you can update the patch with the parts of it I
haven't been able to apply.

> For Windows users it is neccessairy to download and install diffutils
> (because bzr needs diff3 utility). This package may be downloaded from
> GnuWin32:
> 
> http://gnuwin32.sourceforge.net/packages/diffutils.htm

I think we have a python version of diff3, so this should not bee needed
anymore.

> Another win32 improvemets in setup.py: for windows users automatically
> created batch file bzr.bat for simple invoking bzr.

This is merged.

> Wise men, can you explaine me why not using shutil.move on Windows
> instead of os.rename? At least it's just working, but os.rename is not
> works if src_file exists.

Also this part of your patch.

> And I have some problem with testhashcache on my machine: I need to
> prolonging pause after file-write operation up to 3 seconds for pass
> this test. It's seems strange with my Celeron 1,8 GHz processor.

Are you using a win32 file system ? Win32 has a timestamp that is only
accurate to 2 seconds, so to ensure we are in a different time to that
on the file, which is what the test tests, you need to ensure you wait >
2 seconds.

> I think some of my fixes may be included in current bzr.dev for future
> compatibility with windows platform.

They are now, and I'd like to get them all in, windows is very important
to support well.

Thank you,
Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050923/b0d61938/attachment.pgp 


More information about the bazaar mailing list