Mercurial > hg
view tests/test-empty.t @ 50583:833a4e881a7a
safehasattr: pass attribute name as string instead of bytes
This is a step toward replacing `util.safehasattr` usage with plain `hasattr`.
The builtin function behave poorly in Python2 but this was fixed in Python3.
These change are done one by one as they tend to have a small odd to trigger
puzzling breackage.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 02 Feb 2023 17:28:15 +0100 |
parents | 4bcb91c8b9d8 |
children |
line wrap: on
line source
Create an empty repo: $ hg init a $ cd a Try some commands: $ hg log $ hg grep wah [1] $ hg manifest $ hg verify -q Check the basic files created: $ ls .hg 00changelog.i cache requires store wcache Should be empty (except for the "basic" requires): $ ls .hg/store requires Poke at a clone: $ cd .. $ hg clone a b updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd b $ hg verify -q $ ls .hg 00changelog.i branch cache hgrc requires store wcache Should be empty (except for the "basic" requires): $ ls .hg/store requires $ cd ..