Mercurial > hg
comparison hgext/keyword.py @ 12605:aa4a6e3ed0c9
keyword: use workingctx to detect modified and added files after rollback
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 01 Oct 2010 02:13:31 +0200 |
parents | 415ab8911724 |
children | d87f3ff904ba |
comparison
equal
deleted
inserted
replaced
12604:415ab8911724 | 12605:aa4a6e3ed0c9 |
---|---|
512 if not dryrun: | 512 if not dryrun: |
513 changed = self['.'].files() | 513 changed = self['.'].files() |
514 ret = super(kwrepo, self).rollback(dryrun) | 514 ret = super(kwrepo, self).rollback(dryrun) |
515 if not dryrun: | 515 if not dryrun: |
516 ctx = self['.'] | 516 ctx = self['.'] |
517 modified, added = super(kwrepo, self).status()[:2] | 517 modified, added = self[None].status()[:2] |
518 kwt.overwrite(ctx, added, True, False, changed) | 518 kwt.overwrite(ctx, added, True, False, changed) |
519 kwt.overwrite(ctx, modified, True, True, changed) | 519 kwt.overwrite(ctx, modified, True, True, changed) |
520 return ret | 520 return ret |
521 finally: | 521 finally: |
522 wlock.release() | 522 wlock.release() |