Show More
@@ -144,12 +144,18 b" def lowlevelcopy(rlog, tr, destname=b'_d" | |||
|
144 | 144 | text = None |
|
145 | 145 | cachedelta = (deltaparent, rlog.revdiff(deltaparent, r)) |
|
146 | 146 | flags = rlog.flags(r) |
|
147 | ifh = dlog.opener(dlog.indexfile, 'a+') | |
|
148 | dfh = None | |
|
149 | if not dlog._inline: | |
|
150 | dfh = dlog.opener(dlog.datafile, 'a+') | |
|
151 | dlog._addrevision(rlog.node(r), text, tr, r, p1, p2, flags, cachedelta, | |
|
152 | ifh, dfh) | |
|
147 | ifh = dfh = None | |
|
148 | try: | |
|
149 | ifh = dlog.opener(dlog.indexfile, 'a+') | |
|
150 | if not dlog._inline: | |
|
151 | dfh = dlog.opener(dlog.datafile, 'a+') | |
|
152 | dlog._addrevision(rlog.node(r), text, tr, r, p1, p2, flags, | |
|
153 | cachedelta, ifh, dfh) | |
|
154 | finally: | |
|
155 | if dfh is not None: | |
|
156 | dfh.close() | |
|
157 | if ifh is not None: | |
|
158 | ifh.close() | |
|
153 | 159 | return dlog |
|
154 | 160 | |
|
155 | 161 | # Utilities to generate revisions for testing |
General Comments 0
You need to be logged in to leave comments.
Login now