mercurial/match.py
branchstable
changeset 25875 511e1949d557
parent 25870 3de48ff62733
child 25958 c4ccf2d394a7
child 26000 9ac4e81b9659
--- a/mercurial/match.py	Sun Jul 26 09:28:52 2015 -0300
+++ b/mercurial/match.py	Mon Jul 27 22:14:40 2015 +0900
@@ -5,7 +5,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import copy, re
+import copy, os, re
 import util, pathutil
 from i18n import _
 
@@ -289,7 +289,7 @@
                 continue
             elif kind == 'include':
                 try:
-                    fullpath = pathutil.join(root, pat)
+                    fullpath = os.path.join(root, util.localpath(pat))
                     includepats = readpatternfile(fullpath, self._warn)
                     for k, p, source in self._normalize(includepats, default,
                                                         root, cwd, auditor):