comparison hglib/client.py @ 98:972d069051c5

client: fix indentation
author Idan Kamara <idankk86@gmail.com>
date Tue, 17 Jan 2012 22:24:24 +0200
parents 705e601e6085
children 2b36619ec0a0
comparison
equal deleted inserted replaced
97:705e601e6085 98:972d069051c5
7 def __new__(cls, rev, node, tags, branch, author, desc): 7 def __new__(cls, rev, node, tags, branch, author, desc):
8 return tuple.__new__(cls, (rev, node, tags, branch, author, desc)) 8 return tuple.__new__(cls, (rev, node, tags, branch, author, desc))
9 9
10 @property 10 @property
11 def rev(self): 11 def rev(self):
12 return self[0] 12 return self[0]
13 13
14 @property 14 @property
15 def node(self): 15 def node(self):
16 return self[1] 16 return self[1]
17 17
18 @property 18 @property
19 def tags(self): 19 def tags(self):
20 return self[2] 20 return self[2]
21 21
22 @property 22 @property
23 def branch(self): 23 def branch(self):
24 return self[3] 24 return self[3]
25 25
26 @property 26 @property
27 def author(self): 27 def author(self):
28 return self[4] 28 return self[4]
29 29
30 @property 30 @property
31 def desc(self): 31 def desc(self):
32 return self[5] 32 return self[5]
33 33
34 class hgclient(object): 34 class hgclient(object):
35 inputfmt = '>I' 35 inputfmt = '>I'
36 outputfmt = '>cI' 36 outputfmt = '>cI'
37 outputfmtsize = struct.calcsize(outputfmt) 37 outputfmtsize = struct.calcsize(outputfmt)