[PATCH 1 of 7] blackbox: log working directory version

Yuya Nishihara yuya at tcha.org
Wed Feb 10 08:20:32 EST 2016


On Tue, 9 Feb 2016 14:47:39 -0500, timeless wrote:
> Yuya Nishihara wrote:
> > It seems awkward to create a formatter just to select hex/short func.
> 
> Not quite fun, no, but, that's the way the code works, it means if
> someone wants --debug, they can get the long things.

Why not do it without a formatter?

  if ui.debugflag:
      hex
  else:
      short

fm.hexfunc is provided because it is quite common where formatter is used
and it have to be switched by formatter type, i.e. -T option.


More information about the Mercurial-devel mailing list