Show More
@@ -14,6 +14,7 b' import context, repair, graphmod, revset' | |||||
14 | import changelog |
|
14 | import changelog | |
15 | import bookmarks |
|
15 | import bookmarks | |
16 | import encoding |
|
16 | import encoding | |
|
17 | import crecord as crecordmod | |||
17 | import lock as lockmod |
|
18 | import lock as lockmod | |
18 |
|
19 | |||
19 | def parsealiases(cmd): |
|
20 | def parsealiases(cmd): | |
@@ -86,9 +87,10 b' def dorecord(ui, repo, commitfunc, cmdsu' | |||||
86 |
|
87 | |||
87 | newandmodifiedfiles = set() |
|
88 | newandmodifiedfiles = set() | |
88 | for h in chunks: |
|
89 | for h in chunks: | |
|
90 | iscrecordhunk = isinstance(h, crecordmod.uihunk) | |||
89 | ishunk = isinstance(h, patch.recordhunk) |
|
91 | ishunk = isinstance(h, patch.recordhunk) | |
90 | isnew = h.filename() in status.added |
|
92 | isnew = h.filename() in status.added | |
91 | if ishunk and isnew and not h in originalchunks: |
|
93 | if (ishunk or iscrecordhunk) and isnew and not h in originalchunks: | |
92 | newandmodifiedfiles.add(h.filename()) |
|
94 | newandmodifiedfiles.add(h.filename()) | |
93 |
|
95 | |||
94 | modified = set(status.modified) |
|
96 | modified = set(status.modified) |
General Comments 0
You need to be logged in to leave comments.
Login now