histedit: also update away from tmpnodes
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 03 Aug 2015 06:11:45 -0700
changeset 25909 e62839741aaa
parent 25908 5e53d214415d
child 25910 b4a85ddadcb9
histedit: also update away from tmpnodes The working copy may be on a tmpnodes, we need to update away before it is stripped from the repository.
hgext/histedit.py
--- a/hgext/histedit.py	Mon Aug 03 06:08:37 2015 -0700
+++ b/hgext/histedit.py	Mon Aug 03 06:11:45 2015 -0700
@@ -792,7 +792,7 @@
 
         # check whether we should update away
         if repo.unfiltered().revs('parents() and (%n  or %ln)',
-                                  state.parentctxnode, leafs):
+                                  state.parentctxnode, leafs | tmpnodes):
             hg.clean(repo, state.topmost)
         cleanupnode(ui, repo, 'created', tmpnodes)
         cleanupnode(ui, repo, 'temp', leafs)