Show More
@@ -2225,7 +2225,10 b' def tip(ui, repo, **opts):' | |||||
2225 | Show the tip revision. |
|
2225 | Show the tip revision. | |
2226 | """ |
|
2226 | """ | |
2227 | n = repo.changelog.tip() |
|
2227 | n = repo.changelog.tip() | |
2228 | show_changeset(ui, repo, changenode=n) |
|
2228 | br = None | |
|
2229 | if opts['branch']: | |||
|
2230 | br = repo.branchlookup([n]) | |||
|
2231 | show_changeset(ui, repo, changenode=n, brinfo=br) | |||
2229 | if opts['patch']: |
|
2232 | if opts['patch']: | |
2230 | dodiff(ui, ui, repo, repo.changelog.parents(n)[0], n) |
|
2233 | dodiff(ui, ui, repo, repo.changelog.parents(n)[0], n) | |
2231 |
|
2234 | |||
@@ -2577,7 +2580,11 b' table = {' | |||||
2577 | ('r', 'rev', '', _('revision to tag'))], |
|
2580 | ('r', 'rev', '', _('revision to tag'))], | |
2578 | _('hg tag [-r REV] [OPTION]... NAME')), |
|
2581 | _('hg tag [-r REV] [OPTION]... NAME')), | |
2579 | "tags": (tags, [], _('hg tags')), |
|
2582 | "tags": (tags, [], _('hg tags')), | |
2580 | "tip": (tip, [('p', 'patch', None, _('show patch'))], _('hg tip')), |
|
2583 | "tip": | |
|
2584 | (tip, | |||
|
2585 | [('b', 'branch', None, _('show branches')), | |||
|
2586 | ('p', 'patch', None, _('show patch'))], | |||
|
2587 | _('hg [-b] [-p] tip')), | |||
2581 | "unbundle": |
|
2588 | "unbundle": | |
2582 | (unbundle, |
|
2589 | (unbundle, | |
2583 | [('u', 'update', None, |
|
2590 | [('u', 'update', None, |
General Comments 0
You need to be logged in to leave comments.
Login now