mercurial/commands.py
changeset 40716 d4c550c703d7
parent 40715 e7d6a9082bdf
child 40717 92c574684f75
--- a/mercurial/commands.py	Sat Nov 24 18:38:44 2018 +0900
+++ b/mercurial/commands.py	Sat Nov 24 18:41:44 2018 +0900
@@ -333,6 +333,7 @@
         repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
     ctx = scmutil.revsingle(repo, rev)
 
+    ui.pager('annotate')
     rootfm = ui.formatter('annotate', opts)
     if ui.debugflag:
         shorthex = pycompat.identity
@@ -381,8 +382,6 @@
         'lineno': 'line_number',
     }
 
-    ui.pager('annotate')
-
     if rootfm.isplain():
         def makefunc(get, fmt):
             return lambda x: fmt(get(x))