Mercurial > hg
comparison hgext/convert/gnuarch.py @ 43384:1edf620a37a3 stable
py3: encode strings before setting rev summary in gnuarch converter
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Mon, 04 Nov 2019 10:09:08 +0100 |
parents | 0f890ce15888 |
children | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43383:0f890ce15888 | 43384:1edf620a37a3 |
---|---|
308 # Commit author | 308 # Commit author |
309 self.changes[rev].author = self.recode(catlog[r'Creator']) | 309 self.changes[rev].author = self.recode(catlog[r'Creator']) |
310 | 310 |
311 # Commit description | 311 # Commit description |
312 self.changes[rev].summary = b'\n\n'.join( | 312 self.changes[rev].summary = b'\n\n'.join( |
313 (catlog[r'Summary'], catlog.get_payload()) | 313 ( |
314 self.recode(catlog[r'Summary']), | |
315 self.recode(catlog.get_payload()), | |
316 ) | |
314 ) | 317 ) |
315 self.changes[rev].summary = self.recode(self.changes[rev].summary) | 318 self.changes[rev].summary = self.recode(self.changes[rev].summary) |
316 | 319 |
317 # Commit revision origin when dealing with a branch or tag | 320 # Commit revision origin when dealing with a branch or tag |
318 if r'Continuation-of' in catlog: | 321 if r'Continuation-of' in catlog: |