Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/logcmdutil.py @ 49431:79b2c98ab7b4
branching: merge stable into default
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 16 Jun 2022 15:20:48 +0200 |
parents | eb8aed493a56 2f326ea19fbc |
children | dcb2581e33be |
comparison
equal
deleted
inserted
replaced
49364:c2092612c424 | 49431:79b2c98ab7b4 |
---|---|
374 self._showobsfate(ctx) | 374 self._showobsfate(ctx) |
375 | 375 |
376 self._exthook(ctx) | 376 self._exthook(ctx) |
377 | 377 |
378 if self.ui.debugflag: | 378 if self.ui.debugflag: |
379 files = ctx.p1().status(ctx) | |
380 for key, value in zip( | 379 for key, value in zip( |
381 [b'files', b'files+', b'files-'], | 380 [b'files', b'files+', b'files-'], |
382 [files.modified, files.added, files.removed], | 381 [ctx.filesmodified(), ctx.filesadded(), ctx.filesremoved()], |
383 ): | 382 ): |
384 if value: | 383 if value: |
385 self.ui.write( | 384 self.ui.write( |
386 columns[key] % b" ".join(value), | 385 columns[key] % b" ".join(value), |
387 label=b'ui.debug log.files', | 386 label=b'ui.debug log.files', |
509 self.ui.debugflag | 508 self.ui.debugflag |
510 or b'modified' in datahint | 509 or b'modified' in datahint |
511 or b'added' in datahint | 510 or b'added' in datahint |
512 or b'removed' in datahint | 511 or b'removed' in datahint |
513 ): | 512 ): |
514 files = ctx.p1().status(ctx) | |
515 fm.data( | 513 fm.data( |
516 modified=fm.formatlist(files.modified, name=b'file'), | 514 modified=fm.formatlist(ctx.filesmodified(), name=b'file'), |
517 added=fm.formatlist(files.added, name=b'file'), | 515 added=fm.formatlist(ctx.filesadded(), name=b'file'), |
518 removed=fm.formatlist(files.removed, name=b'file'), | 516 removed=fm.formatlist(ctx.filesremoved(), name=b'file'), |
519 ) | 517 ) |
520 | 518 |
521 verbose = not self.ui.debugflag and self.ui.verbose | 519 verbose = not self.ui.debugflag and self.ui.verbose |
522 if verbose or b'files' in datahint: | 520 if verbose or b'files' in datahint: |
523 fm.data(files=fm.formatlist(ctx.files(), name=b'file')) | 521 fm.data(files=fm.formatlist(ctx.files(), name=b'file')) |