sapling/tests/test-catnotate.t
Jun Wu 8a3a99ba21 hgext: move single file extensions to hgext3rd
Summary:
Be a better citizen under system python path.

Fix all tests issues and change setup.py to use glob pattern to include
all extensions.

Test Plan:
Run tests and `make local`.
Also build and install the package and run `hg sl` in major repos.

Reviewers: #mercurial, ttung, rmcelroy

Reviewed By: rmcelroy

Subscribers: rmcelroy, durham, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3534311

Signature: t1:3534311:1468275426:fe122646c8bd6c541e1889e73e9df28f86747ff2
2016-07-08 13:15:42 +01:00

49 lines
687 B
Raku

Test catnotate
$ hg init repo1
$ cd repo1
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$(dirname $TESTDIR)/hgext3rd/catnotate.py
> strip=
> EOF
$ cat > a <<EOF
> Hell
> on
> world
> EOF
$ cat > b <<EOF
> Hello
> world
> EOF
$ printf "\0\n" >> b
$ hg add a b
$ hg commit -m "Hello :)"
$ hg catnotate a b
a:1: Hell
a:2: on
a:3: world
a:4:
b: binary file
$ hg catnotate -a a b
a:1: Hell
a:2: on
a:3: world
a:4:
b:1: Hello
b:2: world
b:3: \x00 (esc)
b:4:
$ hg update 0
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg catnotate --rev . a
a:1: Hell
a:2: on
a:3: world
a:4: