equal
deleted
inserted
replaced
2689 # We do not use revsingle/revrange functions here to accept |
2689 # We do not use revsingle/revrange functions here to accept |
2690 # arbitrary node identifiers, possibly not present in the |
2690 # arbitrary node identifiers, possibly not present in the |
2691 # local repository. |
2691 # local repository. |
2692 n = bin(s) |
2692 n = bin(s) |
2693 if len(n) != repo.nodeconstants.nodelen: |
2693 if len(n) != repo.nodeconstants.nodelen: |
2694 raise TypeError() |
2694 raise ValueError |
2695 return n |
2695 return n |
2696 except TypeError: |
2696 except ValueError: |
2697 raise error.InputError( |
2697 raise error.InputError( |
2698 b'changeset references must be full hexadecimal ' |
2698 b'changeset references must be full hexadecimal ' |
2699 b'node identifiers' |
2699 b'node identifiers' |
2700 ) |
2700 ) |
2701 |
2701 |