[RFC/MERGE][Bug #243998] has_workingtree should work on remote BzrDirs

Daniel Watkins daniel at daniel-watkins.co.uk
Sun Feb 8 23:37:31 GMT 2009


Hello all,

Currently, has_workingtree behaves slightly oddly.  On a local BzrDir,
it will return True if there is a WT and False if there is not (this is
not the odd part).  On a remote BzrDir, it will return False if there is
not a WT, but will throw errors.NotLocalUrl if there is one.  The
attached is a two-line fix which catches the error and returns True in
its place.  Pretty simple.

However, I'm struggling to work out how to test it.  While it's not
vital that this is tested (as it is currently not directly tested and
this change passes the full test suite), I'd like to add some in.  Could
someone give me some pointers as to how to go about testing this?


Cheers,

Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 243998-has_workingtree-remote-3986.patch
Type: text/x-patch
Size: 2012 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090209/4099efe4/attachment.bin 


More information about the bazaar mailing list