##// END OF EJS Templates
subrepo: store the ui object in the base class...
Matt Harbison -
r23536:fcbc66b5 default
parent child Browse files
Show More
@@ -372,6 +372,9 b' def newcommitphase(ui, ctx):'
372
372
373 class abstractsubrepo(object):
373 class abstractsubrepo(object):
374
374
375 def __init__(self, ui):
376 self._ui = ui
377
375 def storeclean(self, path):
378 def storeclean(self, path):
376 """
379 """
377 returns true if the repository has not changed since it was last
380 returns true if the repository has not changed since it was last
@@ -508,6 +511,7 b' class abstractsubrepo(object):'
508
511
509 class hgsubrepo(abstractsubrepo):
512 class hgsubrepo(abstractsubrepo):
510 def __init__(self, ctx, path, state):
513 def __init__(self, ctx, path, state):
514 super(hgsubrepo, self).__init__(ctx._repo.ui)
511 self._path = path
515 self._path = path
512 self._state = state
516 self._state = state
513 r = ctx._repo
517 r = ctx._repo
@@ -878,6 +882,7 b' class hgsubrepo(abstractsubrepo):'
878
882
879 class svnsubrepo(abstractsubrepo):
883 class svnsubrepo(abstractsubrepo):
880 def __init__(self, ctx, path, state):
884 def __init__(self, ctx, path, state):
885 super(svnsubrepo, self).__init__(ctx._repo.ui)
881 self._path = path
886 self._path = path
882 self._state = state
887 self._state = state
883 self._ctx = ctx
888 self._ctx = ctx
@@ -1108,6 +1113,7 b' class svnsubrepo(abstractsubrepo):'
1108
1113
1109 class gitsubrepo(abstractsubrepo):
1114 class gitsubrepo(abstractsubrepo):
1110 def __init__(self, ctx, path, state):
1115 def __init__(self, ctx, path, state):
1116 super(gitsubrepo, self).__init__(ctx._repo.ui)
1111 self._state = state
1117 self._state = state
1112 self._ctx = ctx
1118 self._ctx = ctx
1113 self._path = path
1119 self._path = path
General Comments 0
You need to be logged in to leave comments. Login now