mercurial/commands.py
changeset 3671 86d3f966201d
parent 3670 b4903debbe3b
child 3672 e8730b5b8a32
equal deleted inserted replaced
3670:b4903debbe3b 3671:86d3f966201d
  2193 def tip(ui, repo, **opts):
  2193 def tip(ui, repo, **opts):
  2194     """show the tip revision
  2194     """show the tip revision
  2195 
  2195 
  2196     Show the tip revision.
  2196     Show the tip revision.
  2197     """
  2197     """
  2198     cmdutil.show_changeset(ui, repo, opts).show(repo.changelog.count()-1)
  2198     cmdutil.show_changeset(ui, repo, opts).show(nullrev+repo.changelog.count())
  2199 
  2199 
  2200 def unbundle(ui, repo, fname, **opts):
  2200 def unbundle(ui, repo, fname, **opts):
  2201     """apply a changegroup file
  2201     """apply a changegroup file
  2202 
  2202 
  2203     Apply a compressed changegroup file generated by the bundle
  2203     Apply a compressed changegroup file generated by the bundle