Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TreeEntry equality testing  #458

@ssadler

Description

@ssadler

So I am comparing 2 different versions of a TreeEntry at the same path in my repository, and the equality test returns True even though they have different OIDs. Just pointing it out, it wasn't hard to find but it seems counter intuitive to me.

(Pdb) (item1.oid, item2.oid)
(d21644a6c7570de018ea623d37732b8e549218ec, c9f6f5428e80fb5d3954ccf0ae2ca24c1c999f53)
(Pdb) (item1.name, item2.name)
('tx', 'tx')
(Pdb) item1 == item2
True

Otherwise, thanks for the great lib!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions