Show More
@@ -275,6 +275,11 b' class abstractsubrepo(object):' | |||
|
275 | 275 | """ |
|
276 | 276 | raise NotImplementedError |
|
277 | 277 | |
|
278 | def basestate(self): | |
|
279 | """current working directory base state, disregarding .hgsubstate | |
|
280 | state and working directory modifications""" | |
|
281 | raise NotImplementedError | |
|
282 | ||
|
278 | 283 | def checknested(self, path): |
|
279 | 284 | """check if path is a subrepository within this repository""" |
|
280 | 285 | return False |
@@ -446,6 +451,9 b' class hgsubrepo(abstractsubrepo):' | |||
|
446 | 451 | return True |
|
447 | 452 | return w.dirty() # working directory changed |
|
448 | 453 | |
|
454 | def basestate(self): | |
|
455 | return self._repo['.'].hex() | |
|
456 | ||
|
449 | 457 | def checknested(self, path): |
|
450 | 458 | return self._repo._checknested(self._repo.wjoin(path)) |
|
451 | 459 | |
@@ -666,6 +674,9 b' class svnsubrepo(abstractsubrepo):' | |||
|
666 | 674 | return False |
|
667 | 675 | return True |
|
668 | 676 | |
|
677 | def basestate(self): | |
|
678 | return self._wcrev() | |
|
679 | ||
|
669 | 680 | def commit(self, text, user, date): |
|
670 | 681 | # user and date are out of our hands since svn is centralized |
|
671 | 682 | changed, extchanged = self._wcchanged() |
@@ -907,6 +918,9 b' class gitsubrepo(abstractsubrepo):' | |||
|
907 | 918 | out, code = self._gitdir(['diff-index', '--quiet', 'HEAD']) |
|
908 | 919 | return code == 1 |
|
909 | 920 | |
|
921 | def basestate(self): | |
|
922 | return self._gitstate() | |
|
923 | ||
|
910 | 924 | def get(self, state, overwrite=False): |
|
911 | 925 | source, revision, kind = state |
|
912 | 926 | if not revision: |
General Comments 0
You need to be logged in to leave comments.
Login now