comparison mercurial/dirstate.py @ 20033:f962870712da

pathutil: tease out a new library to break an import cycle from canonpath use
author Augie Fackler <raf@durin42.com>
date Wed, 06 Nov 2013 18:19:04 -0500
parents 601944f41257
children e40520642e64
comparison
equal deleted inserted replaced
20032:175c6fd8cacc 20033:f962870712da
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 import errno 7 import errno
8 8
9 from node import nullid 9 from node import nullid
10 from i18n import _ 10 from i18n import _
11 import scmutil, util, ignore, osutil, parsers, encoding 11 import scmutil, util, ignore, osutil, parsers, encoding, pathutil
12 import os, stat, errno, gc 12 import os, stat, errno, gc
13 13
14 propertycache = util.propertycache 14 propertycache = util.propertycache
15 filecache = scmutil.filecache 15 filecache = scmutil.filecache
16 _rangemask = 0x7fffffff 16 _rangemask = 0x7fffffff
734 734
735 if unknown: 735 if unknown:
736 # unknown == True means we walked the full directory tree above. 736 # unknown == True means we walked the full directory tree above.
737 # So if a file is not seen it was either a) not matching matchfn 737 # So if a file is not seen it was either a) not matching matchfn
738 # b) ignored, c) missing, or d) under a symlink directory. 738 # b) ignored, c) missing, or d) under a symlink directory.
739 audit_path = scmutil.pathauditor(self._root) 739 audit_path = pathutil.pathauditor(self._root)
740 740
741 for nf in iter(visit): 741 for nf in iter(visit):
742 # Report ignored items in the dmap as long as they are not 742 # Report ignored items in the dmap as long as they are not
743 # under a symlink directory. 743 # under a symlink directory.
744 if audit_path.check(nf): 744 if audit_path.check(nf):