##// END OF EJS Templates
log: fix crash on empty revision with --copies switch...
log: fix crash on empty revision with --copies switch If a revset is empty, .max() raises ValueError. I don't see any reason to recompute the revs, so I made it reuse the one returned by logcmdutil.getrevs(). If no revs specified by command line, the endrev will be smartset.spanset(repo) + 1, which is basically the same as len(repo), the default of getrenamedfn(). If --follow specified, revs.max() points to the working parent, which seems more correct.

File last commit:

r35688:2b9e2415 default
r37794:141017c7 default
Show More
test-fuzz-targets.t
5 lines | 170 B | text/troff | Tads3Lexer
#require clang-libfuzzer test-repo
$ cd $TESTDIR/../contrib/fuzz
$ make
Just run the fuzzer for five seconds to verify it works at all.
$ ./bdiff -max_total_time 5