comparison hgext3rd/topic/discovery.py @ 4804:079dbf36e884

python3: add raw prefix in cases harder to analyze at the token level The `byteify-strings.py` script would be a lot more complicated if it had to do backtracking and other more advanced static analysis to figure our those cases, so we have to add the raw prefix to those cases manually.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 06 Aug 2019 11:26:29 +0200
parents 92e3db149d7d
children 48b30ff742cb
comparison
equal deleted inserted replaced
4803:88472e743c64 4804:079dbf36e884
115 if ':' in key: # This is a topic 115 if ':' in key: # This is a topic
116 if value[0] is None and value[1]: 116 if value[0] is None and value[1]:
117 summary[key] = ([value[1][0]], ) + value[1:] 117 summary[key] = ([value[1][0]], ) + value[1:]
118 return summary 118 return summary
119 finally: 119 finally:
120 if 'unfiltered' in vars(repo): 120 if r'unfiltered' in vars(repo):
121 del repo.unfiltered 121 del repo.unfiltered
122 repo.__class__ = oldrepocls 122 repo.__class__ = oldrepocls
123 if remotebranchmap is not None: 123 if remotebranchmap is not None:
124 remote.branchmap = origremotebranchmap 124 remote.branchmap = origremotebranchmap
125 125