comparison mercurial/subrepo.py @ 14316:d5b525697ddb

extensions: drop maxlength from enabled and disabled This is a bad/silly API. Instead calculate maxlength in one place in help it's used and simplify all the callers.
author Matt Mackall <mpm@selenic.com>
date Fri, 13 May 2011 11:04:51 -0500
parents ba883fa211f3
children 25137d99a5ed
comparison
equal deleted inserted replaced
14315:f6b3b346d80c 14316:d5b525697ddb
406 def dirty(self, ignoreupdate=False): 406 def dirty(self, ignoreupdate=False):
407 r = self._state[1] 407 r = self._state[1]
408 if r == '' and not ignoreupdate: # no state recorded 408 if r == '' and not ignoreupdate: # no state recorded
409 return True 409 return True
410 w = self._repo[None] 410 w = self._repo[None]
411 if r != w.p1().node() and not ignoreupdate: 411 if r != w.p1().hex() and not ignoreupdate:
412 # different version checked out 412 # different version checked out
413 return True 413 return True
414 return w.dirty() # working directory changed 414 return w.dirty() # working directory changed
415 415
416 def checknested(self, path): 416 def checknested(self, path):