##// END OF EJS Templates
diff: migrate to modern pager API
Augie Fackler -
r31030:ed0023e4 default
parent child Browse files
Show More
@@ -110,4 +110,4 b' def uisetup(ui):'
110 extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
110 extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
111 extensions.afterloaded('color', afterloaded)
111 extensions.afterloaded('color', afterloaded)
112
112
113 attended = ['diff', 'export', 'glog', 'log', 'qdiff']
113 attended = ['export', 'glog', 'log', 'qdiff']
@@ -1940,6 +1940,7 b' def diff(ui, repo, *pats, **opts):'
1940
1940
1941 diffopts = patch.diffallopts(ui, opts)
1941 diffopts = patch.diffallopts(ui, opts)
1942 m = scmutil.match(repo[node2], pats, opts)
1942 m = scmutil.match(repo[node2], pats, opts)
1943 ui.pager('diff')
1943 cmdutil.diffordiffstat(ui, repo, diffopts, node1, node2, m, stat=stat,
1944 cmdutil.diffordiffstat(ui, repo, diffopts, node1, node2, m, stat=stat,
1944 listsubrepos=opts.get('subrepos'),
1945 listsubrepos=opts.get('subrepos'),
1945 root=opts.get('root'))
1946 root=opts.get('root'))
General Comments 0
You need to be logged in to leave comments. Login now