hgkw/keyword.py
changeset 747 25235530940d
parent 745 a72c2895fc26
child 749 9f46c562c4b5
equal deleted inserted replaced
745:a72c2895fc26 747:25235530940d
   500         try:
   500         try:
   501             # record returns 0 even when nothing has changed
   501             # record returns 0 even when nothing has changed
   502             # therefore compare nodes before and after
   502             # therefore compare nodes before and after
   503             ctx = repo['.']
   503             ctx = repo['.']
   504             ret = orig(ui, repo, commitfunc, *pats, **opts)
   504             ret = orig(ui, repo, commitfunc, *pats, **opts)
   505             recctx = repo['.']
   505             if ctx != repo['.']:
   506             if ctx != recctx:
       
   507                 kwt.overwrite('.',  True, None)
   506                 kwt.overwrite('.',  True, None)
   508             return ret
   507             return ret
   509         finally:
   508         finally:
   510             wlock.release()
   509             wlock.release()
   511 
   510