mercurial/commands.py
changeset 4144 03e9c22a6489
parent 4081 e6d26e71f049
parent 4143 26314500a5e1
child 4158 d8515e374204
equal deleted inserted replaced
4140:193e0f8d9a47 4144:03e9c22a6489
   272     for r, n, t in l:
   272     for r, n, t in l:
   273         hexfunc = ui.debugflag and hex or short
   273         hexfunc = ui.debugflag and hex or short
   274         if ui.quiet:
   274         if ui.quiet:
   275             ui.write("%s\n" % t)
   275             ui.write("%s\n" % t)
   276         else:
   276         else:
   277             t = util.localsub(t, 30)
   277             spaces = " " * (30 - util.locallen(t))
   278             t += " " * (30 - util.locallen(t))
   278             ui.write("%s%s %s:%s\n" % (t, spaces, -r, hexfunc(n)))
   279             ui.write("%s %s:%s\n" % (t, -r, hexfunc(n)))
       
   280 
   279 
   281 def bundle(ui, repo, fname, dest=None, **opts):
   280 def bundle(ui, repo, fname, dest=None, **opts):
   282     """create a changegroup file
   281     """create a changegroup file
   283 
   282 
   284     Generate a compressed changegroup file collecting changesets not
   283     Generate a compressed changegroup file collecting changesets not
  2467         except revlog.LookupError:
  2466         except revlog.LookupError:
  2468             r = "    ?:%s" % hn
  2467             r = "    ?:%s" % hn
  2469         if ui.quiet:
  2468         if ui.quiet:
  2470             ui.write("%s\n" % t)
  2469             ui.write("%s\n" % t)
  2471         else:
  2470         else:
  2472             t = util.localsub(t, 30)
  2471             spaces = " " * (30 - util.locallen(t))
  2473             t += " " * (30 - util.locallen(t))
  2472             ui.write("%s%s %s\n" % (t, spaces, r))
  2474             ui.write("%s %s\n" % (t, r))
       
  2475 
  2473 
  2476 def tip(ui, repo, **opts):
  2474 def tip(ui, repo, **opts):
  2477     """show the tip revision
  2475     """show the tip revision
  2478 
  2476 
  2479     Show the tip revision.
  2477     Show the tip revision.