browse/snapshot_context: Ensure full VCS visit type is selected by default
When no visit type for an origin is explicitly provided as query parameter, ensure a full VCS visit type (git, svn or hg) is selected by default when an origin has multiple visit types. Related to #4786.
Showing
- swh/web/browse/snapshot_context.py 16 additions, 8 deletionsswh/web/browse/snapshot_context.py
- swh/web/browse/tests/test_snapshot_context.py 3 additions, 0 deletionsswh/web/browse/tests/test_snapshot_context.py
- swh/web/browse/tests/views/test_origin.py 37 additions, 0 deletionsswh/web/browse/tests/views/test_origin.py
Loading
Please register or sign in to comment