# HG changeset patch # User Martin von Zweigbergk # Date 2018-06-27 14:19:30 # Node ID ecaa0ad4ed4f421bedf344e1b79ecd7d4952007c # Parent 72621094505f1df4e6cc90f77c85558f5eb7fc31 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 diff --git a/tests/test-basic.t b/tests/test-basic.t --- a/tests/test-basic.t +++ b/tests/test-basic.t @@ -64,7 +64,7 @@ Verify that updating to revision 0 via c > 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