mercurial/debugcommands.py
changeset 49263 63fd0282ad40
parent 49249 b909dd35d9ab
child 49264 db19f6be0442
equal deleted inserted replaced
49262:3e5f1fb2aec7 49263:63fd0282ad40
  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