Mercurial > python-hglib
comparison hglib/client.py @ 100:dd63d69a5ebf
client: make _parserevs a static method
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Tue, 17 Jan 2012 22:26:20 +0200 |
parents | 2b36619ec0a0 |
children | 86ff8611a8fa |
comparison
equal
deleted
inserted
replaced
99:2b36619ec0a0 | 100:dd63d69a5ebf |
---|---|
94 if channel in 'IL': | 94 if channel in 'IL': |
95 return channel, length | 95 return channel, length |
96 else: | 96 else: |
97 return channel, self.server.stdout.read(length) | 97 return channel, self.server.stdout.read(length) |
98 | 98 |
99 def _parserevs(self, splitted): | 99 @staticmethod |
100 def _parserevs(splitted): | |
100 ''' splitted is a list of fields according to our rev.style, where each 6 | 101 ''' splitted is a list of fields according to our rev.style, where each 6 |
101 fields compose one revision. ''' | 102 fields compose one revision. ''' |
102 revs = [] | 103 revs = [] |
103 for rev in util.grouper(7, splitted): | 104 for rev in util.grouper(7, splitted): |
104 # truncate the timezone and convert to a local datetime | 105 # truncate the timezone and convert to a local datetime |