loader: don't ignore closed branches
The existing util for getting a repo's branches skips closed branches but did not leave any explanation why, either in the code or in the commit message. I cannot think of a good reason for ignoring closed branches, so we're removing this exception, which in turn fixes the incremental issue detailed in T3336. This has affected existing tests of the two repositories that had closed branches. A test for the incremental behavior was added as well.
Showing
- swh/loader/mercurial/hgutil.py 0 additions, 2 deletionsswh/loader/mercurial/hgutil.py
- swh/loader/mercurial/tests/data/example.json 1 addition, 1 deletionswh/loader/mercurial/tests/data/example.json
- swh/loader/mercurial/tests/data/the-sandbox.json 1 addition, 1 deletionswh/loader/mercurial/tests/data/the-sandbox.json
- swh/loader/mercurial/tests/test_from_disk.py 72 additions, 23 deletionsswh/loader/mercurial/tests/test_from_disk.py
Loading
Please register or sign in to comment