equal
deleted
inserted
replaced
998 reporef().hook('pretxnclose', throw=True, pending=pending, |
998 reporef().hook('pretxnclose', throw=True, pending=pending, |
999 txnname=desc, **tr.hookargs) |
999 txnname=desc, **tr.hookargs) |
1000 def releasefn(tr, success): |
1000 def releasefn(tr, success): |
1001 repo = reporef() |
1001 repo = reporef() |
1002 if success: |
1002 if success: |
|
1003 # this should be explicitly invoked here, because |
|
1004 # in-memory changes aren't written out at closing |
|
1005 # transaction, if tr.addfilegenerator (via |
|
1006 # dirstate.write or so) isn't invoked while |
|
1007 # transaction running |
1003 repo.dirstate.write() |
1008 repo.dirstate.write() |
1004 else: |
1009 else: |
1005 # prevent in-memory changes from being written out at |
1010 # prevent in-memory changes from being written out at |
1006 # the end of outer wlock scope or so |
1011 # the end of outer wlock scope or so |
1007 repo.dirstate.invalidate() |
1012 repo.dirstate.invalidate() |