comparison tests/test-inhibit.t @ 1537:50e683d9835e

directaccess: fix case of shortened hash containing only digits For directaccess, there are four cases for what looks like short hashes made of digits only: 1 | the hash is a revision number and not a short hash for another revision: we don't change the visibility 2 | the hash is a revision number and a short hash for another revision: we don't change the visibility 3 | the hash is not a revision number and not a short hash for another revision: we don't change the visibility 4 | the hash is not a revision number but is a short hash for another revision: we make it visible Before the patch we were not lifting visibility in case number 4. This patch fixes the issue.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 18 Nov 2015 13:47:26 -0800
parents 74cf5a69f201
children ef5da2310398
comparison
equal deleted inserted replaced
1536:9afe9e0191a1 1537:50e683d9835e
523 | | 523 | |
524 | o 15:2d66e189f5b5 add cM 524 | o 15:2d66e189f5b5 add cM
525 |/ 525 |/
526 o 14:d66ccb8c5871 add cL 526 o 14:d66ccb8c5871 add cL
527 | 527 |
528 $ hg strip -r 104eed5354c7 528 $ hg strip -r 210589181b14
529 1 changesets pruned 529 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
530 working directory now at d66ccb8c5871
531 2 changesets pruned
532
533 Using a hash prefix solely made of digits should work
534 $ hg update 210589181
535 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
530 $ hg rebase -d 18 -r 16 --keep 536 $ hg rebase -d 18 -r 16 --keep
531 rebasing 16:a438c045eb37 "add cN" 537 rebasing 16:a438c045eb37 "add cN"
532 $ hg log -r 14:: -G 538 $ hg log -r 14:: -G
533 o 19:104eed5354c7 add cN 539 o 19:104eed5354c7 add cN
534 | 540 |