[PATCH] Support for unknowns in specified directory in status

Heikki Paajanen hepaajan at iki.fi
Wed Sep 28 17:02:26 BST 2005


ke, 2005-09-28 kello 17:16 +1000, Robert Collins kirjoitti:
> 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.
> 

Thanks! Here's updated version. Hopefully more sane.

Regards,
	Hessu

-- 
Heikki Paajanen <hepaajan at iki.fi>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: status_specified_directory.patch
Type: text/x-patch
Size: 3187 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050928/3c1360ff/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digitaalisesti allekirjoitettu viestin osa
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050928/3c1360ff/attachment.pgp 


More information about the bazaar mailing list