equal
deleted
inserted
replaced
793 def matchandpats(ctx, pats=(), opts=None, globbed=False, default='relpath', |
793 def matchandpats(ctx, pats=(), opts=None, globbed=False, default='relpath', |
794 badfn=None): |
794 badfn=None): |
795 '''Return a matcher and the patterns that were used. |
795 '''Return a matcher and the patterns that were used. |
796 The matcher will warn about bad matches, unless an alternate badfn callback |
796 The matcher will warn about bad matches, unless an alternate badfn callback |
797 is provided.''' |
797 is provided.''' |
798 if pats == ("",): |
|
799 pats = [] |
|
800 if opts is None: |
798 if opts is None: |
801 opts = {} |
799 opts = {} |
802 if not globbed and default == 'relpath': |
800 if not globbed and default == 'relpath': |
803 pats = expandpats(pats or []) |
801 pats = expandpats(pats or []) |
804 |
802 |