##// END OF EJS Templates
dirstate: add p1/p2 convenience methods
Matt Mackall -
r13876:10c7d92a default
parent child Browse files
Show More
@@ -203,6 +203,12 b' class dirstate(object):'
203 def parents(self):
203 def parents(self):
204 return [self._validate(p) for p in self._pl]
204 return [self._validate(p) for p in self._pl]
205
205
206 def p1(self):
207 return self._validate(self._pl[0])
208
209 def p2(self):
210 return self._validate(self._pl[1])
211
206 def branch(self):
212 def branch(self):
207 return encoding.tolocal(self._branch)
213 return encoding.tolocal(self._branch)
208
214
General Comments 0
You need to be logged in to leave comments. Login now