##// END OF EJS Templates
scmutil: add assertions to help pytype...
Matt Harbison -
r44120:5b90a050 default
parent child Browse files
Show More
@@ -1917,6 +1917,7 b' def registersummarycallback(repo, otr, t'
1917 def wrapped(tr):
1917 def wrapped(tr):
1918 repo = reporef()
1918 repo = reporef()
1919 if filtername:
1919 if filtername:
1920 assert repo is not None # help pytype
1920 repo = repo.filtered(filtername)
1921 repo = repo.filtered(filtername)
1921 func(repo, tr)
1922 func(repo, tr)
1922
1923
@@ -1936,6 +1937,7 b' def registersummarycallback(repo, otr, t'
1936 if cgheads:
1937 if cgheads:
1937 htext = _(b" (%+d heads)") % cgheads
1938 htext = _(b" (%+d heads)") % cgheads
1938 msg = _(b"added %d changesets with %d changes to %d files%s\n")
1939 msg = _(b"added %d changesets with %d changes to %d files%s\n")
1940 assert repo is not None # help pytype
1939 repo.ui.status(msg % (cgchangesets, cgrevisions, cgfiles, htext))
1941 repo.ui.status(msg % (cgchangesets, cgrevisions, cgfiles, htext))
1940
1942
1941 if txmatch(_reportobsoletedsource):
1943 if txmatch(_reportobsoletedsource):
General Comments 0
You need to be logged in to leave comments. Login now