[MERGE] InterTree.compare doesn't pass require_versioned on correctly

Robert Collins robertc at robertcollins.net
Mon Jul 30 02:47:47 BST 2007


On Sun, 2007-07-29 at 01:40 +0200, Marius Kruger wrote:
> 
> +        try:
> +            delta = wt.changes_from(wt.basis_tree(), wt,
> +                specific_files=['known_file', 'unknown_file'] ,
> +                require_versioned=True)
> +            self.fail('Expected PathsNotVersionedError to be thrown
> when '
> +                'passing a known and unknown file to
> tree.changes_from '
> +                'and specifying require_versioned.')
> +        except errors.PathsNotVersionedError, e :
> +            pass 

This is more easily written as:
self.assertRaises(errors.PathsNotVersionedError,
    wt.changes_from, wt.basis_tree(), wt,specific_files=['known_file',
'unknown_file'] ,require_versioned=True)

-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/20070730/713b493d/attachment.pgp 


More information about the bazaar mailing list