comparison mercurial/commands.py @ 31386:f1f57e4e55e0

branches: enable pager
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 13 Mar 2017 11:03:59 -0700
parents d0014d2d7645
children 3d3109339b57
comparison
equal deleted inserted replaced
31385:1c48a8278b2f 31386:f1f57e4e55e0
1221 Use the command :hg:`update` to switch to an existing branch. 1221 Use the command :hg:`update` to switch to an existing branch.
1222 1222
1223 Returns 0. 1223 Returns 0.
1224 """ 1224 """
1225 1225
1226 ui.pager('branches')
1226 fm = ui.formatter('branches', opts) 1227 fm = ui.formatter('branches', opts)
1227 hexfunc = fm.hexfunc 1228 hexfunc = fm.hexfunc
1228 1229
1229 allheads = set(repo.heads()) 1230 allheads = set(repo.heads())
1230 branches = [] 1231 branches = []