Skip to content

Commit

Permalink
Add annotations to eden/scm/edenscm/verify.py
Browse files Browse the repository at this point in the history
Reviewed By: quark-zju

Differential Revision: D42707762

fbshipit-source-id: 198310540947fdf4cb67e7c17f2fb21a42296827
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jan 25, 2023
1 parent c0801fe commit 9d42ccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eden/scm/edenscm/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .node import short


def checklazychangelog(repo):
def checklazychangelog(repo) -> int:
"""check lazy changelog properties and print found problems
This function only performs quick local checks to find some
Expand All @@ -26,6 +26,7 @@ def checklazychangelog(repo):
return 0

ui = repo.ui
# pyre-fixme[11]: Annotation `commits` is not defined as a type.
commits: "bindings.dag.commits" = repo.changelog.inner
problems = []
missingids = commits.checkuniversalids()
Expand All @@ -49,7 +50,7 @@ def checklazychangelog(repo):
return 0


def checklazychangelogwithserver(repo):
def checklazychangelogwithserver(repo) -> int:
"""check lazy changelog shape with the server and print found problems
This check first performs a graph clone using segmented changelog protocols.
Expand Down

0 comments on commit 9d42ccb

Please sign in to comment.