comparison tests/test-mq-qpush-exact.t @ 19929:ab2362e1672e

merge: exit early during a no-op update (BC) hg update . (or equivalents) are effectively no-ops in just about all circumstances. These sorts of updates can be especially common in a bookmark-oriented workflow. This saves us a status check and a manifest decompression, which means that on a repo with over 210,000 files, this brings hg update . down from 2.5 seconds to 0.15. There is one change in behavior: a file that was added, not committed, and then deleted but not removed used to be removed from the dirstate. With this patch it isn't. This is what causes the change in test-mq-qpush-exact.t. This seems like it's enough of an edge case to not be worth handling. The output of test-empty.t changes because those files are not yet created.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 01 Oct 2013 17:43:54 -0700
parents f2719b387380
children aa9385f983fa
comparison
equal deleted inserted replaced
19928:d1ac3790e10a 19929:ab2362e1672e
241 +++ fp1 241 +++ fp1
242 @@ -0,0 +1,1 @@ 242 @@ -0,0 +1,1 @@
243 +cp1 243 +cp1
244 $ hg qpop -aqf 244 $ hg qpop -aqf
245 patch queue now empty 245 patch queue now empty
246 $ hg forget fp1
246 $ rm fp1 247 $ rm fp1
247 $ rm fp1.rej 248 $ rm fp1.rej
248 249
249 qpush --exact when already at a patch 250 qpush --exact when already at a patch
250 251