Show More
@@ -126,7 +126,7 b' def getdraftstack(headctx, limit=None):' | |||||
126 | result.reverse() |
|
126 | result.reverse() | |
127 | return result |
|
127 | return result | |
128 |
|
128 | |||
129 |
def getfilestack(stack, path, seenfctxs= |
|
129 | def getfilestack(stack, path, seenfctxs=None): | |
130 | """([ctx], str, set) -> [fctx], {ctx: fctx} |
|
130 | """([ctx], str, set) -> [fctx], {ctx: fctx} | |
131 |
|
131 | |||
132 | stack is a list of contexts, from old to new. usually they are what |
|
132 | stack is a list of contexts, from old to new. usually they are what | |
@@ -163,6 +163,8 b' def getfilestack(stack, path, seenfctxs=' | |||||
163 | - if stack = [6, 7], returns ([1, 2], {6: 1, 7: 2}), although {6: 1} can be |
|
163 | - if stack = [6, 7], returns ([1, 2], {6: 1, 7: 2}), although {6: 1} can be | |
164 | removed, since 1 is immutable. |
|
164 | removed, since 1 is immutable. | |
165 | """ |
|
165 | """ | |
|
166 | if seenfctxs is None: | |||
|
167 | seenfctxs = set() | |||
166 | assert stack |
|
168 | assert stack | |
167 |
|
169 | |||
168 | if path not in stack[-1]: |
|
170 | if path not in stack[-1]: |
General Comments 0
You need to be logged in to leave comments.
Login now