##// 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:

r37201:0024961a default
r37794:141017c7 default
Show More
test-check-clang-format.t
10 lines | 344 B | text/troff | Tads3Lexer
/ tests / test-check-clang-format.t
Augie Fackler
test-clang-format: new test to verify that files stay clang-formatted...
r34835 #require clang-format test-repo
$ . "$TESTDIR/helpers-testrepo.sh"
$ cd "$TESTDIR"/..
Gregory Szorc
contrib: rename clang-format-blacklist to clang-format-ignorelist...
r37201 $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do
Augie Fackler
test-clang-format: new test to verify that files stay clang-formatted...
r34835 > clang-format --style file $f > $f.formatted
> cmp $f $f.formatted || diff -u $f $f.formatted
> rm $f.formatted
> done