Mercurial > python-hglib
comparison hglib/client.py @ 187:9062a6b935ad
summary: parse commit line less strictly (issue5637)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 02 Aug 2017 23:43:16 +0900 |
parents | cdb5a320d2bf |
children | 5609a21fe39a |
comparison
equal
deleted
inserted
replaced
186:d06b48001662 | 187:9062a6b935ad |
---|---|
1595 message = out.pop(0)[1:] | 1595 message = out.pop(0)[1:] |
1596 value.append((int(rev), node, tags, message)) | 1596 value.append((int(rev), node, tags, message)) |
1597 elif name == b('branch'): | 1597 elif name == b('branch'): |
1598 pass | 1598 pass |
1599 elif name == b('commit'): | 1599 elif name == b('commit'): |
1600 value = value == b('(clean)') | 1600 value = b('(clean)') in value |
1601 elif name == b('update'): | 1601 elif name == b('update'): |
1602 if value == b('(current)'): | 1602 if value == b('(current)'): |
1603 value = 0 | 1603 value = 0 |
1604 else: | 1604 else: |
1605 value = int(value.split(b(' '), 1)[0]) | 1605 value = int(value.split(b(' '), 1)[0]) |