(testrepo: Repository)
| 317 | |
| 318 | |
| 319 | def test_ahead_behind(testrepo: Repository) -> None: |
| 320 | ahead, behind = testrepo.ahead_behind( |
| 321 | '5ebeeebb320790caf276b9fc8b24546d63316533', |
| 322 | '4ec4389a8068641da2d6578db0419484972284c8', |
| 323 | ) |
| 324 | assert 1 == ahead |
| 325 | assert 2 == behind |
| 326 | |
| 327 | ahead, behind = testrepo.ahead_behind( |
| 328 | '4ec4389a8068641da2d6578db0419484972284c8', |
| 329 | '5ebeeebb320790caf276b9fc8b24546d63316533', |
| 330 | ) |
| 331 | assert 2 == ahead |
| 332 | assert 1 == behind |
| 333 | |
| 334 | |
| 335 | def test_reset_hard(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…