Show More
@@ -326,7 +326,9 b' class basectx(object):' | |||||
326 |
|
326 | |||
327 | for l in r: |
|
327 | for l in r: | |
328 | l.sort() |
|
328 | l.sort() | |
329 | return r |
|
329 | ||
|
330 | # we return a tuple to signify that this list isn't changing | |||
|
331 | return tuple(r) | |||
330 |
|
332 | |||
331 |
|
333 | |||
332 | def makememctx(repo, parents, text, user, date, branch, files, store, |
|
334 | def makememctx(repo, parents, text, user, date, branch, files, store, | |
@@ -1446,8 +1448,9 b' class workingctx(committablectx):' | |||||
1446 | listunknown, listsubrepos) |
|
1448 | listunknown, listsubrepos) | |
1447 | # calling 'super' subtly reveresed the contexts, so we flip the results |
|
1449 | # calling 'super' subtly reveresed the contexts, so we flip the results | |
1448 | # (s[1] is 'added' and s[2] is 'removed') |
|
1450 | # (s[1] is 'added' and s[2] is 'removed') | |
|
1451 | s = list(s) | |||
1449 | s[1], s[2] = s[2], s[1] |
|
1452 | s[1], s[2] = s[2], s[1] | |
1450 | return s |
|
1453 | return tuple(s) | |
1451 |
|
1454 | |||
1452 | class committablefilectx(basefilectx): |
|
1455 | class committablefilectx(basefilectx): | |
1453 | """A committablefilectx provides common functionality for a file context |
|
1456 | """A committablefilectx provides common functionality for a file context |
General Comments 0
You need to be logged in to leave comments.
Login now