mercurial/localrepo.py
changeset 15611 ec8a49c46d7e
parent 15589 cc24e4ed3e0c
parent 15604 b8d8599410da
child 15646 218ec96c45d7
--- a/mercurial/localrepo.py	Fri Dec 02 18:36:32 2011 +0100
+++ b/mercurial/localrepo.py	Mon Dec 05 17:48:40 2011 -0600
@@ -852,7 +852,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 '
@@ -860,6 +859,7 @@
             else:
                 ui.status(_('working directory now based on '
                             'revision %d\n') % parents)
+        self.destroyed()
         return 0
 
     def invalidatecaches(self):