Bail out earlier in overwrite commands if repo has changes
authorChristian Ebert <blacktrash@gmx.net>
Sat, 06 Oct 2007 19:55:30 +0200
changeset 262 397a5957cc48
parent 261 28e64bebc298
child 263 fc7f60b109b6
Bail out earlier in overwrite commands if repo has changes
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: