Mercurial > hg
comparison tests/remotefilelog-getflogheads.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 | 29996f6c2687 |
children | a4c19a162615 |
comparison
equal
deleted
inserted
replaced
43075:57875cf423c9 | 43076:2372284d9457 |
---|---|
7 ) | 7 ) |
8 | 8 |
9 cmdtable = {} | 9 cmdtable = {} |
10 command = registrar.command(cmdtable) | 10 command = registrar.command(cmdtable) |
11 | 11 |
12 @command(b'getflogheads', | 12 |
13 [], | 13 @command(b'getflogheads', [], b'path') |
14 b'path') | |
15 def getflogheads(ui, repo, path): | 14 def getflogheads(ui, repo, path): |
16 """ | 15 """ |
17 Extension printing a remotefilelog's heads | 16 Extension printing a remotefilelog's heads |
18 | 17 |
19 Used for testing purpose | 18 Used for testing purpose |