~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Marius Kruger
  • Date: 2010-07-10 21:03:02 UTC
  • mto: (5384.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5385.
  • Revision ID: marius.kruger@enerweb.co.za-20100710210302-o0081gfn0zllhrf1
* extract backup_files
* factor out common backup code in workingtree.remove

Show diffs side-by-side

added added

removed removed

Lines of Context:
2712
2712
                "NAME_PATTERN or --default-rules.")
2713
2713
        name_pattern_list = [globbing.normalize_pattern(p)
2714
2714
                             for p in name_pattern_list]
2715
 
        bad_patterns = ''
2716
 
        for p in name_pattern_list:
2717
 
            if not globbing.Globster.is_pattern_valid(p):
2718
 
                bad_patterns += ('\n  %s' % p)
2719
 
        if bad_patterns:
2720
 
            msg = ('Invalid ignore pattern(s) found. %s' % bad_patterns)
2721
 
            ui.ui_factory.show_error(msg)
2722
 
            raise errors.InvalidPattern('')
2723
2715
        for name_pattern in name_pattern_list:
2724
2716
            if (name_pattern[0] == '/' or
2725
2717
                (len(name_pattern) > 1 and name_pattern[1] == ':')):