Show More
@@ -439,6 +439,7 b' class localrepository:' | |||
|
439 | 439 | mm = m1.copy() |
|
440 | 440 | mfm = mf1.copy() |
|
441 | 441 | linkrev = self.changelog.count() |
|
442 | self.dirstate.setparents(p1, p2) | |
|
442 | 443 | for f in files: |
|
443 | 444 | try: |
|
444 | 445 | t = self.wfile(f).read() |
@@ -447,16 +448,19 b' class localrepository:' | |||
|
447 | 448 | mfm[f] = tm |
|
448 | 449 | mm[f] = r.add(t, tr, linkrev, |
|
449 | 450 | m1.get(f, nullid), m2.get(f, nullid)) |
|
451 | self.dirstate.update([f], "n") | |
|
450 | 452 | except IOError: |
|
451 |
|
|
|
452 |
del m |
|
|
453 | try: | |
|
454 | del mm[f] | |
|
455 | del mfm[f] | |
|
456 | self.dirstate.forget([f]) | |
|
457 | except: | |
|
458 | # deleted from p2? | |
|
459 | pass | |
|
453 | 460 | |
|
454 | 461 | mnode = self.manifest.add(mm, mfm, tr, linkrev, c1[0], c2[0]) |
|
455 | 462 | n = self.changelog.add(mnode, files, text, tr, p1, p2, user, date) |
|
456 | 463 | tr.close() |
|
457 | self.dirstate.setparents(p1, p2) | |
|
458 | self.dirstate.clear() | |
|
459 | self.dirstate.update(files, "n") | |
|
460 | 464 | |
|
461 | 465 | def commit(self, files = None, text = ""): |
|
462 | 466 | commit = [] |
General Comments 0
You need to be logged in to leave comments.
Login now