hgext3rd/serverminitopic.py
changeset 3518 d938808e31bc
parent 3511 768f752b5364
child 3651 fa15068a9945
equal deleted inserted replaced
3517:dc31ec3ef042 3518:d938808e31bc
   161         - False when cached tipnode is unknown or if we detect a strip.
   161         - False when cached tipnode is unknown or if we detect a strip.
   162         - True when cache is up to date or a subset of current repo."""
   162         - True when cache is up to date or a subset of current repo."""
   163         valid = super(_topiccache, self).validfor(repo)
   163         valid = super(_topiccache, self).validfor(repo)
   164         if not valid:
   164         if not valid:
   165             return False
   165             return False
   166         elif not mighttopic(repo) and self.phaseshash is None:
   166         elif self.phaseshash is None:
   167             # phasehash at None means this is a branchmap
   167             # phasehash at None means this is a branchmap
   168             # coming from a public only set
   168             # coming from a public only set
   169             return True
   169             return True
   170         else:
   170         else:
   171             try:
   171             try: