Mercurial > evolve
comparison hgext3rd/topic/stack.py @ 4803:88472e743c64
python3: add byte prefix for objects that look like kwargs but aren't
The `byteify-strings.py` script has no way of knowing that those aren't
acutally kwargs since it works purely at the tokenization level, so we
have to add the byte prefix to their keys manually.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 06 Aug 2019 11:17:38 +0200 |
parents | f30c1fab7155 |
children | 48b30ff742cb |
comparison
equal
deleted
inserted
replaced
4802:dc403312a012 | 4803:88472e743c64 |
---|---|
315 # super crude initial version | 315 # super crude initial version |
316 for idx, isentry, ctx in entries[::-1]: | 316 for idx, isentry, ctx in entries[::-1]: |
317 | 317 |
318 symbol = None | 318 symbol = None |
319 states = [] | 319 states = [] |
320 if opts.get('children'): | 320 if opts.get(b'children'): |
321 expr = 'children(%d) and merge() - %ld' | 321 expr = 'children(%d) and merge() - %ld' |
322 revisions = repo.revs(expr, ctx.rev(), st._revs) | 322 revisions = repo.revs(expr, ctx.rev(), st._revs) |
323 if len(revisions) > 0: | 323 if len(revisions) > 0: |
324 states.append('external-children') | 324 states.append('external-children') |
325 | 325 |