Mercurial > hg-stable
comparison hgext/schemes.py @ 45957:89a2afe31e82
formating: upgrade to black 20.8b1
This required a couple of small tweaks to un-confuse black, but now it
works. Big formatting changes come from:
* Dramatically improved collection-splitting logic upstream
* Black having a strong (correct IMO) opinion that """ is better than '''
Differential Revision: https://phab.mercurial-scm.org/D9430
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 27 Nov 2020 17:03:29 -0500 |
parents | 9d2b2df2c2ba |
children | ffd3e823a7e5 |
comparison
equal
deleted
inserted
replaced
45956:346af7687c6f | 45957:89a2afe31e82 |
---|---|
140 extensions.wrapfunction(util, b'hasdriveletter', hasdriveletter) | 140 extensions.wrapfunction(util, b'hasdriveletter', hasdriveletter) |
141 | 141 |
142 | 142 |
143 @command(b'debugexpandscheme', norepo=True) | 143 @command(b'debugexpandscheme', norepo=True) |
144 def expandscheme(ui, url, **opts): | 144 def expandscheme(ui, url, **opts): |
145 """given a repo path, provide the scheme-expanded path | 145 """given a repo path, provide the scheme-expanded path""" |
146 """ | |
147 repo = hg._peerlookup(url) | 146 repo = hg._peerlookup(url) |
148 if isinstance(repo, ShortRepository): | 147 if isinstance(repo, ShortRepository): |
149 url = repo.resolve(url) | 148 url = repo.resolve(url) |
150 ui.write(url + b'\n') | 149 ui.write(url + b'\n') |