88 pieces.append([ "%*s" % (m, x) for x in l]) |
88 pieces.append([ "%*s" % (m, x) for x in l]) |
89 |
89 |
90 for p,l in zip(zip(*pieces), lines): |
90 for p,l in zip(zip(*pieces), lines): |
91 u.write(" ".join(p) + ": " + l[1]) |
91 u.write(" ".join(p) + ": " + l[1]) |
92 |
92 |
|
93 def undo(ui, repo, args): |
|
94 repo.undo() |
|
95 |
93 table = { |
96 table = { |
94 "init": (init, [], 'hg init'), |
97 "init": (init, [], 'hg init'), |
95 "help": (help, [], 'hg init'), |
98 "help": (help, [], 'hg init'), |
96 "checkout|co": (checkout, [], 'hg init'), |
99 "checkout|co": (checkout, [], 'hg init'), |
97 "ann|annotate": (annotate, |
100 "ann|annotate": (annotate, |
98 [('r', 'revision', '', 'revision'), |
101 [('r', 'revision', '', 'revision'), |
99 ('u', 'user', None, 'show user'), |
102 ('u', 'user', None, 'show user'), |
100 ('n', 'number', None, 'show revision number'), |
103 ('n', 'number', None, 'show revision number'), |
101 ('c', 'changeset', None, 'show changeset')], |
104 ('c', 'changeset', None, 'show changeset')], |
102 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
105 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
|
106 "undo": (undo, [], 'hg undo'), |
103 } |
107 } |
104 |
108 |
105 norepo = "init branch help" |
109 norepo = "init branch help" |
106 |
110 |
107 def dispatch(args): |
111 def dispatch(args): |