##// END OF EJS Templates
changegroup: introduce safeversion()...
changegroup: introduce safeversion() In a few places (at least repair.py and shelve.py), we want to find the best changegroup version that we can assume users of the repo will understand. For example, we choose version 01 by default, but if it's a generaldelta repo, we expect clients to support version 02 anyway, so we choose that for new bundles (for e.g. "hg strip"). Let's create a helper for this functionality in changegroup, so we can reuse it elsewhere later.

File last commit:

r27756:598e2107 default
r27929:3b2ac211 stable
Show More
test-check-commit.t
24 lines | 622 B | text/troff | Tads3Lexer
/ tests / test-check-commit.t
Pierre-Yves David
tests: move the '-hg' postfix for all style tests...
r27368 #require test-repo
Enable obsolescence to avoid the warning issue when obsmarker are found
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> EOF
Go back in the hg repo
$ cd $TESTDIR/..
Matt Mackall
tests: run check-commit on secret changes too
r27756 $ for node in `hg log --rev 'not public() and ::.' --template '{node|short}\n'`; do
Pierre-Yves David
tests: move the '-hg' postfix for all style tests...
r27368 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
> if [ $? -ne 0 ]; then
> echo "Revision $node does not comply to rules"
> echo '------------------------------------------------------'
> cat ${TESTTMP}/check-commit.out
> echo
> fi
> done