Show More
@@ -63,6 +63,9 b' class basectx(object):' | |||||
63 | memctx: a context that represents changes in-memory and can also |
|
63 | memctx: a context that represents changes in-memory and can also | |
64 | be committed.""" |
|
64 | be committed.""" | |
65 |
|
65 | |||
|
66 | def __init__(self, repo): | |||
|
67 | self._repo = repo | |||
|
68 | ||||
66 | def __bytes__(self): |
|
69 | def __bytes__(self): | |
67 | return short(self.node()) |
|
70 | return short(self.node()) | |
68 |
|
71 | |||
@@ -406,10 +409,10 b' class changectx(basectx):' | |||||
406 | the repo.""" |
|
409 | the repo.""" | |
407 | def __init__(self, repo, changeid='.'): |
|
410 | def __init__(self, repo, changeid='.'): | |
408 | """changeid is a revision number, node, or tag""" |
|
411 | """changeid is a revision number, node, or tag""" | |
|
412 | super(changectx, self).__init__(repo) | |||
409 |
|
413 | |||
410 | if changeid == '': |
|
414 | if changeid == '': | |
411 | changeid = '.' |
|
415 | changeid = '.' | |
412 | self._repo = repo |
|
|||
413 |
|
416 | |||
414 | try: |
|
417 | try: | |
415 | if isinstance(changeid, int): |
|
418 | if isinstance(changeid, int): | |
@@ -1134,7 +1137,7 b' class committablectx(basectx):' | |||||
1134 | wants the ability to commit, e.g. workingctx or memctx.""" |
|
1137 | wants the ability to commit, e.g. workingctx or memctx.""" | |
1135 | def __init__(self, repo, text="", user=None, date=None, extra=None, |
|
1138 | def __init__(self, repo, text="", user=None, date=None, extra=None, | |
1136 | changes=None): |
|
1139 | changes=None): | |
1137 | self._repo = repo |
|
1140 | super(committablectx, self).__init__(repo) | |
1138 | self._rev = None |
|
1141 | self._rev = None | |
1139 | self._node = None |
|
1142 | self._node = None | |
1140 | self._text = text |
|
1143 | self._text = text | |
@@ -1818,7 +1821,6 b' class overlayworkingctx(committablectx):' | |||||
1818 |
|
1821 | |||
1819 | def __init__(self, repo): |
|
1822 | def __init__(self, repo): | |
1820 | super(overlayworkingctx, self).__init__(repo) |
|
1823 | super(overlayworkingctx, self).__init__(repo) | |
1821 | self._repo = repo |
|
|||
1822 | self.clean() |
|
1824 | self.clean() | |
1823 |
|
1825 | |||
1824 | def setbase(self, wrappedctx): |
|
1826 | def setbase(self, wrappedctx): |
General Comments 0
You need to be logged in to leave comments.
Login now