Mercurial > hg
annotate tests/bzr-definitions @ 17802:a421459b83c0
test: use proper subclassing in `test-issue2137.t`.
To use changelog filtering on the repository, we plan to use "proxy" object that
perfectly mock a repository but with a filtered changelog.
Altering the `repo.commit` function using `extensions.wrapfunction` will prevent
the logic to propagate to the proxy class by the mean of inheritance.
We changes the extension to use subclassing as expectable.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 16 Oct 2012 23:12:07 +0200 |
parents | f84dda152a55 |
children | aa9385f983fa |
rev | line source |
---|---|
7053 | 1 # this file holds the definitions that are used in various bzr tests |
2 | |
3 "$TESTDIR/hghave" bzr || exit 80 | |
4 | |
9042
95046688f80f
tests: remove more instances of export FOO=bar bashism
Brodie Rao <me+hg@dackz.net>
parents:
8523
diff
changeset
|
5 TERM=dumb; export TERM |
7053 | 6 echo '[extensions]' >> $HGRCPATH |
7 echo 'convert = ' >> $HGRCPATH | |
8 echo 'hgext.graphlog = ' >> $HGRCPATH | |
9 | |
10 glog() | |
11 { | |
16060
f84dda152a55
convert/bzr: convert all branches (issue3229) (BC)
Patrick Mezard <pmezard@gmail.com>
parents:
9042
diff
changeset
|
12 hg glog --template '{rev}@{branch} "{desc|firstline}" files: {files}\n' "$@" |
7053 | 13 } |
14 | |
15 manifest() | |
16 { | |
17 echo "% manifest of $2" | |
18 hg -R $1 manifest -v -r $2 | |
19 } |