Refresh file size after partial qrefresh.
authorBrendan Cully <brendan@kublai.com>
Tue, 13 Mar 2007 16:27:34 -0700
changeset 4206 65aabd9f16f0
parent 4205 7ca05d29c1f0
child 4207 b7e66db28571
Refresh file size after partial qrefresh. This makes a subsequent hg revert; hg status work.
hgext/mq.py
--- a/hgext/mq.py	Sun Mar 11 14:21:09 2007 -0700
+++ b/hgext/mq.py	Tue Mar 13 16:27:34 2007 -0700
@@ -1070,7 +1070,7 @@
                     mm.append(m[i])
                     del m[i]
             repo.dirstate.update(m, 'n')
-            repo.dirstate.update(mm, 'n', st_mtime=0)
+            repo.dirstate.update(mm, 'n', st_mtime=-1, st_size=-1)
             repo.dirstate.forget(forget)
 
             if not msg: