[PATCH] Support for unknowns in specified directory in status

Robert Collins robertc at robertcollins.net
Wed Sep 28 08:16:29 BST 2005


On Tue, 2005-09-27 at 19:19 +0300, Heikki Paajanen wrote:
> +                        found = False
> +                        for sf in specific_files:
> +                            if path.startswith(sf + os.sep):
> +                                found = True
> +                                break
> +                        if not found:
> +                            continue 

Have a look at osutils.is_inside, I think it will help you.

Cheers,
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/20050928/5b6b2d6e/attachment.pgp 


More information about the bazaar mailing list