Mercurial > python-hglib
comparison hglib/client.py @ 35:1e33bbea23e5
client: handle spaces correctly in status()
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sun, 14 Aug 2011 00:56:33 +0300 |
parents | f6e1d9a6e0cd |
children | 5506a241c826 |
comparison
equal
deleted
inserted
replaced
34:f6e1d9a6e0cd | 35:1e33bbea23e5 |
---|---|
544 out = self.rawcommand(args) | 544 out = self.rawcommand(args) |
545 l = [] | 545 l = [] |
546 | 546 |
547 for entry in out.split('\0'): | 547 for entry in out.split('\0'): |
548 if entry: | 548 if entry: |
549 l.append(tuple(entry.rsplit(' ', 1))) | 549 if entry[0] == ' ': |
550 l.append((' ', entry[2:])) | |
551 else: | |
552 l.append(tuple(entry.split(' ', 1))) | |
550 | 553 |
551 return l | 554 return l |
552 | 555 |
553 def tip(self): | 556 def tip(self): |
554 args = cmdbuilder('tip', template=templates.changeset) | 557 args = cmdbuilder('tip', template=templates.changeset) |