mercurial/localrepo.py
branchstable
changeset 15604 b8d8599410da
parent 15381 c519cd8f0169
child 15611 ec8a49c46d7e
child 15722 417127af3996
--- a/mercurial/localrepo.py	Thu Dec 01 15:55:37 2011 -0600
+++ b/mercurial/localrepo.py	Thu Dec 01 17:39:30 2011 -0500
@@ -820,7 +820,6 @@
                         % self.dirstate.branch())
 
             self.dirstate.invalidate()
-            self.destroyed()
             parents = tuple([p.rev() for p in self.parents()])
             if len(parents) > 1:
                 ui.status(_('working directory now based on '
@@ -828,6 +827,7 @@
             else:
                 ui.status(_('working directory now based on '
                             'revision %d\n') % parents)
+        self.destroyed()
         return 0
 
     def invalidatecaches(self):