# HG changeset patch # User Christian Ebert # Date 1191693330 -7200 # Node ID 397a5957cc48017043ce9210e3bdb561a60a2942 # Parent 28e64bebc2988f3c682476ba303f2c0b04aea122 Bail out earlier in overwrite commands if repo has changes diff -r 28e64bebc298 -r 397a5957cc48 hgkw/keyword.py --- a/hgkw/keyword.py Sat Oct 06 20:13:18 2007 +0200 +++ b/hgkw/keyword.py Sat Oct 06 19:55:30 2007 +0200 @@ -314,11 +314,11 @@ if not hasattr(ui, 'kwfmatcher'): ui.warn(_('no files configured for keyword expansion\n')) return + bail_if_changed(repo) wlock = lock = None try: wlock = repo.wlock() lock = repo.lock() - bail_if_changed(repo) ctx = repo.changectx() man = ctx.manifest() if files: