Show More
@@ -230,7 +230,8 b' class dirstate(object):' | |||||
230 | self._pl = p |
|
230 | self._pl = p | |
231 |
|
231 | |||
232 | def invalidate(self): |
|
232 | def invalidate(self): | |
233 |
for a in "_map |
|
233 | for a in ("_map", "_copymap", "_foldmap", "_branch", "_pl", "_dirs", | |
|
234 | "_ignore"): | |||
234 | if a in self.__dict__: |
|
235 | if a in self.__dict__: | |
235 | delattr(self, a) |
|
236 | delattr(self, a) | |
236 | self._dirty = False |
|
237 | self._dirty = False |
@@ -733,7 +733,7 b' class localrepository(repo.repository):' | |||||
733 | self._branchcachetip = None |
|
733 | self._branchcachetip = None | |
734 |
|
734 | |||
735 | def invalidate(self): |
|
735 | def invalidate(self): | |
736 |
for a in "changelog |
|
736 | for a in ("changelog", "manifest"): | |
737 | if a in self.__dict__: |
|
737 | if a in self.__dict__: | |
738 | delattr(self, a) |
|
738 | delattr(self, a) | |
739 | self.invalidatecaches() |
|
739 | self.invalidatecaches() |
@@ -1099,7 +1099,7 b' def parsedate(date, formats=None, defaul' | |||||
1099 | if not defaults: |
|
1099 | if not defaults: | |
1100 | defaults = {} |
|
1100 | defaults = {} | |
1101 | now = makedate() |
|
1101 | now = makedate() | |
1102 |
for part in "d |
|
1102 | for part in ("d", "mb", "yY", "HI", "M", "S"): | |
1103 | if part not in defaults: |
|
1103 | if part not in defaults: | |
1104 | if part[0] in "HMS": |
|
1104 | if part[0] in "HMS": | |
1105 | defaults[part] = "00" |
|
1105 | defaults[part] = "00" | |
@@ -1146,7 +1146,7 b' def matchdate(date):' | |||||
1146 |
|
1146 | |||
1147 | def upper(date): |
|
1147 | def upper(date): | |
1148 | d = dict(mb="12", HI="23", M="59", S="59") |
|
1148 | d = dict(mb="12", HI="23", M="59", S="59") | |
1149 |
for days in "31 |
|
1149 | for days in ("31", "30", "29"): | |
1150 | try: |
|
1150 | try: | |
1151 | d["d"] = days |
|
1151 | d["d"] = days | |
1152 | return parsedate(date, extendeddateformats, d)[0] |
|
1152 | return parsedate(date, extendeddateformats, d)[0] |
General Comments 0
You need to be logged in to leave comments.
Login now