mercurial/logcmdutil.py
changeset 43648 4093fc1777c2
parent 43630 af9c73f26371
child 43701 c9301ac73b95
equal deleted inserted replaced
43647:e035a8f71d52 43648:4093fc1777c2
   337             self._showobsfate(ctx)
   337             self._showobsfate(ctx)
   338 
   338 
   339         self._exthook(ctx)
   339         self._exthook(ctx)
   340 
   340 
   341         if self.ui.debugflag:
   341         if self.ui.debugflag:
   342             files = ctx.p1().status(ctx)[:3]
   342             files = ctx.p1().status(ctx)
   343             for key, value in zip([b'files', b'files+', b'files-'], files):
   343             for key, value in zip(
       
   344                 [b'files', b'files+', b'files-'],
       
   345                 [files.modified, files.added, files.removed],
       
   346             ):
   344                 if value:
   347                 if value:
   345                     self.ui.write(
   348                     self.ui.write(
   346                         columns[key] % b" ".join(value),
   349                         columns[key] % b" ".join(value),
   347                         label=b'ui.debug log.files',
   350                         label=b'ui.debug log.files',
   348                     )
   351                     )
   468             or b'added' in datahint
   471             or b'added' in datahint
   469             or b'removed' in datahint
   472             or b'removed' in datahint
   470         ):
   473         ):
   471             files = ctx.p1().status(ctx)
   474             files = ctx.p1().status(ctx)
   472             fm.data(
   475             fm.data(
   473                 modified=fm.formatlist(files[0], name=b'file'),
   476                 modified=fm.formatlist(files.modified, name=b'file'),
   474                 added=fm.formatlist(files[1], name=b'file'),
   477                 added=fm.formatlist(files.added, name=b'file'),
   475                 removed=fm.formatlist(files[2], name=b'file'),
   478                 removed=fm.formatlist(files.removed, name=b'file'),
   476             )
   479             )
   477 
   480 
   478         verbose = not self.ui.debugflag and self.ui.verbose
   481         verbose = not self.ui.debugflag and self.ui.verbose
   479         if verbose or b'files' in datahint:
   482         if verbose or b'files' in datahint:
   480             fm.data(files=fm.formatlist(ctx.files(), name=b'file'))
   483             fm.data(files=fm.formatlist(ctx.files(), name=b'file'))