comparison tests/test-empty.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 f1186c292d03
comparison
equal deleted inserted replaced
19928:d1ac3790e10a 19929:ab2362e1672e
40 crosschecking files in changesets and manifests 40 crosschecking files in changesets and manifests
41 checking files 41 checking files
42 0 files, 0 changesets, 0 total revisions 42 0 files, 0 changesets, 0 total revisions
43 $ ls .hg 43 $ ls .hg
44 00changelog.i 44 00changelog.i
45 branch
46 dirstate
47 hgrc 45 hgrc
48 requires 46 requires
49 store 47 store
50 48
51 Should be empty: 49 Should be empty: