mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
9a19e06fee
Summary: Move the strip extension to core. Rename the command to `hg debugstrip` as it is not intended for use by users. Users should use `hg hide` instead. Reviewed By: quark-zju Differential Revision: D14185822 fbshipit-source-id: ef096488cb94b72a7bb79f5bf153c064e0555b34
45 lines
594 B
Raku
45 lines
594 B
Raku
Test catnotate
|
|
|
|
$ enable catnotate
|
|
$ hg init repo1
|
|
$ cd repo1
|
|
|
|
$ 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:
|