equal
deleted
inserted
replaced
388 match current stored state. If ignoreupdate is true, only check |
388 match current stored state. If ignoreupdate is true, only check |
389 whether the subrepo has uncommitted changes in its dirstate. |
389 whether the subrepo has uncommitted changes in its dirstate. |
390 """ |
390 """ |
391 raise NotImplementedError |
391 raise NotImplementedError |
392 |
392 |
|
393 def dirtyreason(self, ignoreupdate=False): |
|
394 """return reason string if it is ``dirty()`` |
|
395 |
|
396 Returned string should have enough information for the message |
|
397 of exception. |
|
398 |
|
399 This returns None, otherwise. |
|
400 """ |
|
401 if self.dirty(ignoreupdate=ignoreupdate): |
|
402 return _("uncommitted changes in subrepository '%s'" |
|
403 ) % subrelpath(self) |
|
404 |
393 def basestate(self): |
405 def basestate(self): |
394 """current working directory base state, disregarding .hgsubstate |
406 """current working directory base state, disregarding .hgsubstate |
395 state and working directory modifications""" |
407 state and working directory modifications""" |
396 raise NotImplementedError |
408 raise NotImplementedError |
397 |
409 |