Mercurial > hg
comparison hgext/children.py @ 43076:2372284d9457
formatting: blacken the codebase
This is using my patch to black
(https://github.com/psf/black/pull/826) so we don't un-wrap collection
literals.
Done with:
hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S
# skip-blame mass-reformatting only
# no-check-commit reformats foo_bar functions
Differential Revision: https://phab.mercurial-scm.org/D6971
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:45:02 -0400 |
parents | c303d65d2e34 |
children | 687b865b95ad |
comparison
equal
deleted
inserted
replaced
43075:57875cf423c9 | 43076:2372284d9457 |
---|---|
33 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 33 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
34 # be specifying the version(s) of Mercurial they are tested with, or | 34 # be specifying the version(s) of Mercurial they are tested with, or |
35 # leave the attribute unspecified. | 35 # leave the attribute unspecified. |
36 testedwith = 'ships-with-hg-core' | 36 testedwith = 'ships-with-hg-core' |
37 | 37 |
38 @command('children', | 38 |
39 [('r', 'rev', '.', | 39 @command( |
40 _('show children of the specified revision'), _('REV')), | 40 'children', |
41 ] + templateopts, | 41 [('r', 'rev', '.', _('show children of the specified revision'), _('REV')),] |
42 + templateopts, | |
42 _('hg children [-r REV] [FILE]'), | 43 _('hg children [-r REV] [FILE]'), |
43 helpcategory=command.CATEGORY_CHANGE_NAVIGATION, | 44 helpcategory=command.CATEGORY_CHANGE_NAVIGATION, |
44 inferrepo=True) | 45 inferrepo=True, |
46 ) | |
45 def children(ui, repo, file_=None, **opts): | 47 def children(ui, repo, file_=None, **opts): |
46 """show the children of the given or working directory revision | 48 """show the children of the given or working directory revision |
47 | 49 |
48 Print the children of the working directory's revisions. If a | 50 Print the children of the working directory's revisions. If a |
49 revision is given via -r/--rev, the children of that revision will | 51 revision is given via -r/--rev, the children of that revision will |