changeset 3087:fd1479e30aaf

mq: do not update an empty working directory after strip. Closes #296.
author Brendan Cully <brendan@kublai.com>
date Wed, 13 Sep 2006 16:41:03 -0700
parents 17747e80ea6c
children dc784839516d
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Tue Sep 12 11:11:19 2006 -0700
+++ b/hgext/mq.py	Wed Sep 13 16:41:03 2006 -0700
@@ -1740,7 +1740,8 @@
         backup = 'strip'
     elif opts['nobackup']:
         backup = 'none'
-    repo.mq.strip(repo, rev, backup=backup)
+    update = repo.dirstate.parents()[0] != revlog.nullid
+    repo.mq.strip(repo, rev, backup=backup, update=update)
     return 0
 
 def select(ui, repo, *args, **opts):