Show More
@@ -99,27 +99,6 b' class dirstate(object):' | |||||
99 | # normally, so we don't have a try/finally here on purpose. |
|
99 | # normally, so we don't have a try/finally here on purpose. | |
100 | self._parentwriters -= 1 |
|
100 | self._parentwriters -= 1 | |
101 |
|
101 | |||
102 | def beginparentchange(self): |
|
|||
103 | '''Marks the beginning of a set of changes that involve changing |
|
|||
104 | the dirstate parents. If there is an exception during this time, |
|
|||
105 | the dirstate will not be written when the wlock is released. This |
|
|||
106 | prevents writing an incoherent dirstate where the parent doesn't |
|
|||
107 | match the contents. |
|
|||
108 | ''' |
|
|||
109 | self._ui.deprecwarn('beginparentchange is obsoleted by the ' |
|
|||
110 | 'parentchange context manager.', '4.3') |
|
|||
111 | self._parentwriters += 1 |
|
|||
112 |
|
||||
113 | def endparentchange(self): |
|
|||
114 | '''Marks the end of a set of changes that involve changing the |
|
|||
115 | dirstate parents. Once all parent changes have been marked done, |
|
|||
116 | the wlock will be free to write the dirstate on release. |
|
|||
117 | ''' |
|
|||
118 | self._ui.deprecwarn('endparentchange is obsoleted by the ' |
|
|||
119 | 'parentchange context manager.', '4.3') |
|
|||
120 | if self._parentwriters > 0: |
|
|||
121 | self._parentwriters -= 1 |
|
|||
122 |
|
||||
123 | def pendingparentchange(self): |
|
102 | def pendingparentchange(self): | |
124 | '''Returns true if the dirstate is in the middle of a set of changes |
|
103 | '''Returns true if the dirstate is in the middle of a set of changes | |
125 | that modify the dirstate parent. |
|
104 | that modify the dirstate parent. |
General Comments 0
You need to be logged in to leave comments.
Login now