[RFC] Ignoring versioned directory ignores all child files
Martin Pool
mbp at canonical.com
Sat Aug 26 01:47:55 BST 2006
On 25 Aug 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> https://launchpad.net/products/bzr/+bug/57637
>
> Recently someone was trying to version their home directory, and wanted
> to ignore all dot files, but have them versioned in a special sub-directory.
>
> So after doing 'bzr ignore "./.*"' and then 'bzr add .dotfiles/', he
> found that all of the files in '.dotfiles/' were defaulting to being
> ignored.
>
> He thought it was because they were also dot files, but really it is
> because the full path to the files matches the regex. And this is
> because fnmatch expands '*' => '.*' rather than '[^/]*' or something
> equivalent.
I consider that an fnmatch bug, so we should feel free to fix it. The
specification is that they're unix globs.
> I think we need to look into using Jan's custom ignore creator, rather
> than fnmatch. We already broke behavior between 0.8 and 0.9 (though we
> tried to keep it fairly similar)
Agree.
--
Martin
More information about the bazaar
mailing list