This is an archive of the discontinued Mercurial Phabricator instance.

hgit: use type_str instead of type for checking type of git objects
Changes PlannedPublic

Authored by pulkit on Mar 5 2020, 9:39 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

type returns a constant which were integers.

https://www.pygit2.org/objects.html#pygit2.Object.type

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

pulkit created this revision.Mar 5 2020, 9:39 AM
pulkit updated this revision to Diff 20506.Mar 5 2020, 9:44 AM
pulkit planned changes to this revision.Mar 5 2020, 10:03 AM

I should add some tests.