##// END OF EJS Templates
dirstate: respect request to not list unknown/ignored/clean files (API)...
Martin von Zweigbergk -
r44019:dd773340 default
parent child Browse files
Show More
@@ -1149,16 +1149,19 b' class dirstate(object):'
1149 )
1149 )
1150 return (lookup, status)
1150 return (lookup, status)
1151
1151
1152 def noop(f):
1153 pass
1154
1152 dcontains = dmap.__contains__
1155 dcontains = dmap.__contains__
1153 dget = dmap.__getitem__
1156 dget = dmap.__getitem__
1154 ladd = lookup.append # aka "unsure"
1157 ladd = lookup.append # aka "unsure"
1155 madd = modified.append
1158 madd = modified.append
1156 aadd = added.append
1159 aadd = added.append
1157 uadd = unknown.append
1160 uadd = unknown.append if listunknown else noop
1158 iadd = ignored.append
1161 iadd = ignored.append if listignored else noop
1159 radd = removed.append
1162 radd = removed.append
1160 dadd = deleted.append
1163 dadd = deleted.append
1161 cadd = clean.append
1164 cadd = clean.append if listclean else noop
1162 mexact = match.exact
1165 mexact = match.exact
1163 dirignore = self._dirignore
1166 dirignore = self._dirignore
1164 checkexec = self._checkexec
1167 checkexec = self._checkexec
General Comments 0
You need to be logged in to leave comments. Login now