Mercurial > hg
comparison tests/test-revset.t @ 46115:be3d8178251e
errors: raise InputError if an ambiguous revision id prefix is used
It's long bothered me that we include the "00changelog.i" part in a
message to the user. This fixes that along with the exit code.
Differential Revision: https://phab.mercurial-scm.org/D9600
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 09 Dec 2020 20:22:25 -0800 |
parents | 95c4cca641f6 |
children | 56d441256e82 |
comparison
equal
deleted
inserted
replaced
46114:c6ae1982b2a1 | 46115:be3d8178251e |
---|---|
1871 3 | 1871 3 |
1872 $ hg log --template '{rev}\n' -r 'x8' | 1872 $ hg log --template '{rev}\n' -r 'x8' |
1873 3 | 1873 3 |
1874 $ hg log --template '{rev}\n' -r 'id(x)' | 1874 $ hg log --template '{rev}\n' -r 'id(x)' |
1875 $ hg log --template '{rev}\n' -r 'x' | 1875 $ hg log --template '{rev}\n' -r 'x' |
1876 abort: 00changelog.i@: ambiguous identifier | 1876 abort: ambiguous revision identifier: x |
1877 [255] | 1877 [10] |
1878 $ log 'id(23268)' | 1878 $ log 'id(23268)' |
1879 4 | 1879 4 |
1880 $ log 'id(2785f51eece)' | 1880 $ log 'id(2785f51eece)' |
1881 0 | 1881 0 |
1882 $ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532c)' | 1882 $ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532c)' |
2038 $ hg debugobsolete fffbae3886c8fbb2114296380d276fd37715d571 | 2038 $ hg debugobsolete fffbae3886c8fbb2114296380d276fd37715d571 |
2039 1 new obsolescence markers | 2039 1 new obsolescence markers |
2040 obsoleted 1 changesets | 2040 obsoleted 1 changesets |
2041 | 2041 |
2042 $ hg debugrevspec 'fff' | 2042 $ hg debugrevspec 'fff' |
2043 abort: 00changelog.i@fff: ambiguous identifier | 2043 abort: ambiguous revision identifier: fff |
2044 [255] | 2044 [10] |
2045 $ hg debugrevspec 'ffff' | 2045 $ hg debugrevspec 'ffff' |
2046 abort: 00changelog.i@ffff: ambiguous identifier | 2046 abort: ambiguous revision identifier: ffff |
2047 [255] | 2047 [10] |
2048 $ hg debugrevspec 'fffb' | 2048 $ hg debugrevspec 'fffb' |
2049 abort: 00changelog.i@fffb: ambiguous identifier | 2049 abort: ambiguous revision identifier: fffb |
2050 [255] | 2050 [10] |
2051 BROKEN should be '2' (node lookup uses unfiltered repo) | 2051 BROKEN should be '2' (node lookup uses unfiltered repo) |
2052 $ hg debugrevspec 'id(fffb)' | 2052 $ hg debugrevspec 'id(fffb)' |
2053 BROKEN should be '2' (node lookup uses unfiltered repo) | 2053 BROKEN should be '2' (node lookup uses unfiltered repo) |
2054 $ hg debugrevspec 'ffff8' | 2054 $ hg debugrevspec 'ffff8' |
2055 4 | 2055 4 |