Mercurial > hg
comparison tests/test-revset.t @ 24904:b5c227f3e461 stable
revset: id() called with 40-byte strings should give the same results as for short strings
The patch solves two issues:
1. id(unknown_full_hash) aborts, but id(unknown_short_hash) doesn't
2. id(40byte_tag_or_bookmark) returns tagged/bookmarked revision,
but id(non-40byte_tag_or_bookmark) doesn't
After the patch:
1. id(unknown_full_hash) doesn't abort
2. id(40byte_tag_or_bookmark) returns empty set
author | Alexander Drozdov <al.drozdov@gmail.com> |
---|---|
date | Mon, 20 Apr 2015 10:52:20 +0300 |
parents | 8cc6036bca53 |
children | 022282152632 8b99e9a8db05 |
comparison
equal
deleted
inserted
replaced
24903:09124cce913f | 24904:b5c227f3e461 |
---|---|
85 marked working directory as branch \xc3\xa9 (esc) | 85 marked working directory as branch \xc3\xa9 (esc) |
86 (branches are permanent and global, did you want a bookmark?) | 86 (branches are permanent and global, did you want a bookmark?) |
87 $ hg ci -Aqm9 | 87 $ hg ci -Aqm9 |
88 | 88 |
89 $ hg tag -r6 1.0 | 89 $ hg tag -r6 1.0 |
90 $ hg bookmark -r6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
90 | 91 |
91 $ hg clone --quiet -U -r 7 . ../remote1 | 92 $ hg clone --quiet -U -r 7 . ../remote1 |
92 $ hg clone --quiet -U -r 8 . ../remote2 | 93 $ hg clone --quiet -U -r 8 . ../remote2 |
93 $ echo "[paths]" >> .hg/hgrc | 94 $ echo "[paths]" >> .hg/hgrc |
94 $ echo "default = ../remote1" >> .hg/hgrc | 95 $ echo "default = ../remote1" >> .hg/hgrc |
551 9 | 552 9 |
552 $ log 'rev(10)' | 553 $ log 'rev(10)' |
553 $ log 'rev(tip)' | 554 $ log 'rev(tip)' |
554 hg: parse error: rev expects a number | 555 hg: parse error: rev expects a number |
555 [255] | 556 [255] |
557 | |
558 Test hexadecimal revision | |
559 $ log 'id(2)' | |
560 abort: 00changelog.i@2: ambiguous identifier! | |
561 [255] | |
562 $ log 'id(23268)' | |
563 4 | |
564 $ log 'id(2785f51eece)' | |
565 0 | |
566 $ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532c)' | |
567 8 | |
568 $ log 'id(d5d0dcbdc4a)' | |
569 $ log 'id(d5d0dcbdc4w)' | |
570 $ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532d)' | |
571 $ log 'id(d5d0dcbdc4d9ff5dbb2d336f32f0bb561c1a532q)' | |
572 $ log 'id(1.0)' | |
573 $ log 'id(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)' | |
556 | 574 |
557 Test null revision | 575 Test null revision |
558 $ log '(null)' | 576 $ log '(null)' |
559 -1 | 577 -1 |
560 $ log '(null:0)' | 578 $ log '(null:0)' |