Mercurial > hg
changeset 38480:ecaa0ad4ed4f
tests: pass "rev" argument to commands.update() as string
commands.update() normally gets its "rev" argument as a string, but
test-basic.t was passing an integer. That happened to work, but we
shouldn't rely on it.
Differential Revision: https://phab.mercurial-scm.org/D3851
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 27 Jun 2018 07:19:30 -0700 |
parents | 72621094505f |
children | a8872a820242 |
files | tests/test-basic.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-basic.t Wed Jun 27 23:39:41 2018 +0900 +++ b/tests/test-basic.t Wed Jun 27 07:19:30 2018 -0700 @@ -64,7 +64,7 @@ > from mercurial import ui, hg, commands > myui = ui.ui.load() > repo = hg.repository(myui, path=b'.') - > commands.update(myui, repo, rev=0) + > commands.update(myui, repo, rev=b"0") > EOF $ hg up null 0 files updated, 0 files merged, 1 files removed, 0 files unresolved