[Updated] D8782: tests: make flag parsing test more future safe

joerg.sonnenberger (Joerg Sonnenberger) phabricator at mercurial-scm.org
Sat Aug 8 21:01:45 UTC 2020


Closed by commit rHG15d35f2ba474: tests: make flag parsing test more future safe (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8782?vs=22027&id=22368

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8782/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8782

AFFECTED FILES
  tests/test-revlog-v2.t

CHANGE DETAILS

diff --git a/tests/test-revlog-v2.t b/tests/test-revlog-v2.t
--- a/tests/test-revlog-v2.t
+++ b/tests/test-revlog-v2.t
@@ -32,10 +32,10 @@
 Unknown flags to revlog are rejected
 
   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
-  ...     fh.write(b'\x00\x04\xde\xad') and None
+  ...     fh.write(b'\xff\x00\xde\xad') and None
 
   $ hg log
-  abort: unknown flags (0x04) in version 57005 revlog 00changelog.i!
+  abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i!
   [255]
 
   $ cd ..



To: joerg.sonnenberger, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200808/6e690dd8/attachment-0002.html>


More information about the Mercurial-patches mailing list