mercurial/commands.py
changeset 31395 f1f57e4e55e0
parent 31372 d0014d2d7645
child 31396 3d3109339b57
equal deleted inserted replaced
31394:1c48a8278b2f 31395: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 = []