Mercurial > hg-git
view .gitignore @ 999:a128b9a53b5a
revset_gitnode: allow abbreviated hashes
The previous implementation only allowed passing 40-hexdigit hashes or
12-hexdigit abbreviations to `gitnode(hash)`. Shorter or longer hashes
were accepted, but failed silently. With this fix, any unambiguous
abbreviation is accepted. `gitnode(a5b)` selects the revision whose Git hash
starts with `a5b`, if there is one, and aborts if there are several.
author | Sietse Brouwer <sbbrouwer@gmail.com> |
---|---|
date | Thu, 06 Oct 2016 10:11:14 +0200 |
parents | 505d7cdca198 |
children |