##// END OF EJS Templates
treemanifests: skip extraneous check for item before calling _loadlazy...
spectral -
r40019:3cacb74c default
parent child Browse files
Show More
@@ -817,8 +817,7 b' class treemanifest(object):'
817 817 self._load()
818 818 dir, subpath = _splittopdir(f)
819 819 if dir:
820 if dir in self._lazydirs:
821 self._loadlazy(dir)
820 self._loadlazy(dir)
822 821
823 822 if dir not in self._dirs:
824 823 return False
@@ -831,8 +830,7 b' class treemanifest(object):'
831 830 self._load()
832 831 dir, subpath = _splittopdir(f)
833 832 if dir:
834 if dir in self._lazydirs:
835 self._loadlazy(dir)
833 self._loadlazy(dir)
836 834
837 835 if dir not in self._dirs:
838 836 return default
@@ -844,8 +842,7 b' class treemanifest(object):'
844 842 self._load()
845 843 dir, subpath = _splittopdir(f)
846 844 if dir:
847 if dir in self._lazydirs:
848 self._loadlazy(dir)
845 self._loadlazy(dir)
849 846
850 847 return self._dirs[dir].__getitem__(subpath)
851 848 else:
@@ -855,8 +852,7 b' class treemanifest(object):'
855 852 self._load()
856 853 dir, subpath = _splittopdir(f)
857 854 if dir:
858 if dir in self._lazydirs:
859 self._loadlazy(dir)
855 self._loadlazy(dir)
860 856
861 857 if dir not in self._dirs:
862 858 return ''
@@ -870,8 +866,7 b' class treemanifest(object):'
870 866 self._load()
871 867 dir, subpath = _splittopdir(f)
872 868 if dir:
873 if dir in self._lazydirs:
874 self._loadlazy(dir)
869 self._loadlazy(dir)
875 870
876 871 return self._dirs[dir].find(subpath)
877 872 else:
@@ -881,8 +876,7 b' class treemanifest(object):'
881 876 self._load()
882 877 dir, subpath = _splittopdir(f)
883 878 if dir:
884 if dir in self._lazydirs:
885 self._loadlazy(dir)
879 self._loadlazy(dir)
886 880
887 881 self._dirs[dir].__delitem__(subpath)
888 882 # If the directory is now empty, remove it
@@ -899,8 +893,7 b' class treemanifest(object):'
899 893 self._load()
900 894 dir, subpath = _splittopdir(f)
901 895 if dir:
902 if dir in self._lazydirs:
903 self._loadlazy(dir)
896 self._loadlazy(dir)
904 897 if dir not in self._dirs:
905 898 self._dirs[dir] = treemanifest(self._subpath(dir))
906 899 self._dirs[dir].__setitem__(subpath, n)
@@ -921,8 +914,7 b' class treemanifest(object):'
921 914 self._load()
922 915 dir, subpath = _splittopdir(f)
923 916 if dir:
924 if dir in self._lazydirs:
925 self._loadlazy(dir)
917 self._loadlazy(dir)
926 918 if dir not in self._dirs:
927 919 self._dirs[dir] = treemanifest(self._subpath(dir))
928 920 self._dirs[dir].setflag(subpath, flags)
@@ -993,8 +985,7 b' class treemanifest(object):'
993 985 self._load()
994 986 topdir, subdir = _splittopdir(dir)
995 987 if topdir:
996 if topdir in self._lazydirs:
997 self._loadlazy(topdir)
988 self._loadlazy(topdir)
998 989 if topdir in self._dirs:
999 990 return self._dirs[topdir].hasdir(subdir)
1000 991 return False
General Comments 0
You need to be logged in to leave comments. Login now