Commit 0325cb5c authored by Ion Savin's avatar Ion Savin
Browse files

annotate: show full changeset hash when invoked with --debug and -c

parent e6868bd17f24
......@@ -248,9 +248,11 @@ def annotate(ui, repo, *pats, **opts):
if not pats:
raise util.Abort(_('at least one filename or pattern is required'))
hexfn = ui.debugflag and hex or short
opmap = [('user', ' ', lambda x: ui.shortuser(x[0].user())),
('number', ' ', lambda x: str(x[0].rev())),
('changeset', ' ', lambda x: short(x[0].node())),
('changeset', ' ', lambda x: hexfn(x[0].node())),
('date', ' ', getdate),
('file', ' ', lambda x: x[0].path()),
('line_number', ':', lambda x: str(x[1])),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment