##// END OF EJS Templates
bisect: avoid adding irrelevant revisions to bisect state...
bisect: avoid adding irrelevant revisions to bisect state When adding new revisions to the bisect state, it only makes sense to add information about revisions that are under consideration (i.e., those that are topologically between the known good and bad revisions). However, if the user passes in a revset (e.g., '!merge()' to exclude merge commits), hg will resolve the revset first and add all matching revisions to the bisect state (which in this case would likely be the majority of revisions in the repo). To avoid this, revisions should only be added to the bisect state if they are between the good and bad revisions (and therefore relevant to the bisection). -- Here are the results of some performance tests using the `mozilla-central` repo (since it is one of the largest freely-available hg repositories in the wild). These tests compare the performance of a locally-built `hg` before and after application of this series. Note that `--noupdate` is passed to avoid including update time (which should not vary across cases). Setup (run between each test): $ hg bisect --reset $ hg bisect --noupdate --bad 56c3ad4bde5c70714b784ccf15d099e0df0f5bde $ hg bisect --noupdate --good 57426696adaf08298af3027fa77486fee0633b13 Test using a revset that returns a very large number of revisions: $ time hg bisect --noupdate --skip '!merge()' > /dev/null Before: real 0m9.398s user 0m9.233s sys 0m0.120s After: real 0m1.513s user 0m1.425s sys 0m0.052s Test using a revset that is expensive to compute: $ time hg bisect --noupdate --skip 'desc("Bug")' > /dev/null Before: real 0m49.853s user 0m49.580s sys 0m0.243s After: real 0m4.120s user 0m4.036s sys 0m0.048s

File last commit:

r38318:88e7105b default
r50337:81623652 default
Show More
test-debugbuilddag.t
330 lines | 5.3 KiB | text/troff | Tads3Lexer
/ tests / test-debugbuilddag.t
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 plain
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922
Martin Geisler
test-debugbuilddag: replace unneeded 'rm -rf' with 'rm -r'
r14278 $ hg init
Martin Geisler
debugbuilddag: output progress information
r14279 $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' \
> --config extensions.progress= --config progress.assume-tty=1 \
> --config progress.delay=0 --config progress.refresh=0 \
Julien Cristau
tests: disable progress estimate in test-debugbuilddag.t...
r16368 > --config progress.format=topic,bar,number \
Mads Kiilerich
tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
r17743 > --config progress.width=60
\r (no-eol) (esc)
building [ ] 0/12\r (no-eol) (esc)
building [ ] 0/12\r (no-eol) (esc)
building [==> ] 1/12\r (no-eol) (esc)
building [==> ] 1/12\r (no-eol) (esc)
building [======> ] 2/12\r (no-eol) (esc)
building [=========> ] 3/12\r (no-eol) (esc)
building [=============> ] 4/12\r (no-eol) (esc)
building [=============> ] 4/12\r (no-eol) (esc)
building [=============> ] 4/12\r (no-eol) (esc)
building [================> ] 5/12\r (no-eol) (esc)
building [====================> ] 6/12\r (no-eol) (esc)
building [=======================> ] 7/12\r (no-eol) (esc)
building [===========================> ] 8/12\r (no-eol) (esc)
building [===========================> ] 8/12\r (no-eol) (esc)
building [==============================> ] 9/12\r (no-eol) (esc)
building [==================================> ] 10/12\r (no-eol) (esc)
building [=====================================> ] 11/12\r (no-eol) (esc)
\r (no-eol) (esc)
Martin Geisler
debugbuilddag: output progress information
r14279
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 tags
$ cat .hg/localtags
66f7d451a68b85ed82ff5fcc254daf50c74144bd f
bebd167eb94d257ace0e814aeb98e6972ed2970d p2
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 dag
$ hg debugdag -t -b
+2:f
+3:p2
@temp*f+3
@default*/p2+2:tip
tip
$ hg id
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 000000000000
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 glog
Martin Geisler
tests: don't load unnecessary graphlog extension...
r20117 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 11: r11 [] @ 11.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 10: r10 [] @ 10.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 9: r9 [] @ 9.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 |\
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 8: r8 [temp] @ 8.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 7: r7 [temp] @ 7.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 6: r6 [temp] @ 6.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 5: r5 [temp] @ 5.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 4: r4 [] @ 4.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 3: r3 [] @ 3.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 2: r2 [] @ 2.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 |/
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 1: r1 [] @ 1.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 0: r0 [] @ 0.00
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 overwritten files, starting on a non-default branch
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163
Martin Geisler
test-debugbuilddag: replace unneeded 'rm -rf' with 'rm -r'
r14278 $ rm -r .hg
$ hg init
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 $ hg debugbuilddag '@start.@default.:f +3:p2 @temp <f+4 @default /p2 +2' -q -o
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 tags
$ cat .hg/localtags
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 f778700ebd50fcf282b23a4446bd155da6453eb6 f
bbccf169769006e2490efd2a02f11c3d38d462bd p2
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 dag
$ hg debugdag -t -b
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 @start+1
@default+1:f
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 +3:p2
@temp*f+3
@default*/p2+2:tip
tip
$ hg id
000000000000
glog
Martin Geisler
tests: don't load unnecessary graphlog extension...
r20117 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 11: r11 [] @ 11.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 10: r10 [] @ 10.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 9: r9 [] @ 9.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |\
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 8: r8 [temp] @ 8.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 7: r7 [temp] @ 7.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 6: r6 [temp] @ 6.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 5: r5 [temp] @ 5.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 4: r4 [] @ 4.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 3: r3 [] @ 3.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 2: r2 [] @ 2.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |/
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 1: r1 [] @ 1.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 0: r0 [start] @ 0.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922
glog of
Martin Geisler
tests: don't load unnecessary graphlog extension...
r20117 $ hg log -G --template '{rev}: {desc} [{branches}]\n' of
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 o 11: r11 []
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
o 10: r10 []
|
o 9: r9 []
|\
| o 8: r8 [temp]
| |
| o 7: r7 [temp]
| |
| o 6: r6 [temp]
| |
| o 5: r5 [temp]
| |
o | 4: r4 []
| |
o | 3: r3 []
| |
o | 2: r2 []
|/
o 1: r1 []
|
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 o 0: r0 [start]
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922
tags
$ hg tags -v
Wagner Bruna
debugbuilddag: fix starting a dag on a non-default branch
r16219 tip 11:9ffe238a67a2
p2 4:bbccf1697690 local
f 1:f778700ebd50 local
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 cat of
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 $ hg cat of --rev tip
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 r11
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 new and mergeable files
Martin Geisler
test-debugbuilddag: replace unneeded 'rm -rf' with 'rm -r'
r14278 $ rm -r .hg
$ hg init
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -mn
dag
$ hg debugdag -t -b
+2:f
+3:p2
@temp*f+3
@default*/p2+2:tip
tip
$ hg id
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 000000000000
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 glog
Martin Geisler
tests: don't load unnecessary graphlog extension...
r20117 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 11: r11 [] @ 11.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 10: r10 [] @ 10.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 9: r9 [] @ 9.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |\
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 8: r8 [temp] @ 8.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 7: r7 [temp] @ 7.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 6: r6 [temp] @ 6.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 | o 5: r5 [temp] @ 5.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 4: r4 [] @ 4.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 3: r3 [] @ 3.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 | |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o | 2: r2 [] @ 2.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |/
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 1: r1 [] @ 1.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
Yuya Nishihara
templater: restore the original string format of {date}...
r38318 o 0: r0 [] @ 0.00
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922
glog mf
Martin Geisler
tests: don't load unnecessary graphlog extension...
r20117 $ hg log -G --template '{rev}: {desc} [{branches}]\n' mf
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 o 11: r11 []
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 |
o 10: r10 []
|
o 9: r9 []
|\
| o 8: r8 [temp]
| |
| o 7: r7 [temp]
| |
| o 6: r6 [temp]
| |
| o 5: r5 [temp]
| |
o | 4: r4 []
| |
o | 3: r3 []
| |
o | 2: r2 []
|/
o 1: r1 []
|
o 0: r0 []
man r4
$ hg manifest -r4
mf
nf0
nf1
nf2
nf3
nf4
cat r4 mf
$ hg cat -r4 mf
0 r0
1
2 r1
3
4 r2
5
6 r3
7
8 r4
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
man r8
$ hg manifest -r8
mf
nf0
nf1
nf5
nf6
nf7
nf8
cat r8 mf
$ hg cat -r8 mf
0 r0
1
2 r1
3
4
5
6
7
8
9
10 r5
11
12 r6
13
14 r7
15
16 r8
17
18
19
20
21
22
23
man
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 $ hg manifest --rev tip
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 mf
nf0
nf1
nf10
nf11
nf2
nf3
nf4
nf5
nf6
nf7
nf8
nf9
cat mf
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163 $ hg cat mf --rev tip
Pradeepkumar Gayam
tests: unify test-debugbuilddag
r11922 0 r0
1
2 r1
3
4 r2
5
6 r3
7
8 r4
9
10 r5
11
12 r6
13
14 r7
15
16 r8
17
18 r9
19
20 r10
21
22 r11
23
Peter Arrenbrecht
debugbuilddag: use memctx for speed...
r14163