Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/branchmap.py @ 34371:d0db41af73c0
branchmap: remove superfluous pass statements
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 30 Sep 2017 07:42:59 -0400 |
parents | abf91c4f9608 |
children | 07fdac1d5c66 |
comparison
equal
deleted
inserted
replaced
34370:5adbd3806ef7 | 34371:d0db41af73c0 |
---|---|
249 f.close() | 249 f.close() |
250 repo.ui.log('branchcache', | 250 repo.ui.log('branchcache', |
251 'wrote %s branch cache with %d labels and %d nodes\n', | 251 'wrote %s branch cache with %d labels and %d nodes\n', |
252 repo.filtername, len(self), nodecount) | 252 repo.filtername, len(self), nodecount) |
253 except (IOError, OSError, error.Abort) as inst: | 253 except (IOError, OSError, error.Abort) as inst: |
254 # Abort may be raised by read only opener, so log and continue | |
254 repo.ui.debug("couldn't write branch cache: %s\n" % inst) | 255 repo.ui.debug("couldn't write branch cache: %s\n" % inst) |
255 # Abort may be raise by read only opener | |
256 pass | |
257 | 256 |
258 def update(self, repo, revgen): | 257 def update(self, repo, revgen): |
259 """Given a branchhead cache, self, that may have extra nodes or be | 258 """Given a branchhead cache, self, that may have extra nodes or be |
260 missing heads, and a generator of nodes that are strictly a superset of | 259 missing heads, and a generator of nodes that are strictly a superset of |
261 heads missing, this function updates self to be correct. | 260 heads missing, this function updates self to be correct. |