Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 50839:55a9ea786291
paths: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 20 Aug 2023 01:35:14 -0400 |
parents | b4425b5bd80e |
children | 7ef29f8b723d |
comparison
equal
deleted
inserted
replaced
50838:b4425b5bd80e | 50839:55a9ea786291 |
---|---|
5194 :url: String. URL or directory path for the other operations. | 5194 :url: String. URL or directory path for the other operations. |
5195 | 5195 |
5196 Returns 0 on success. | 5196 Returns 0 on success. |
5197 """ | 5197 """ |
5198 | 5198 |
5199 opts = pycompat.byteskwargs(opts) | |
5200 | |
5201 pathitems = urlutil.list_paths(ui, search) | 5199 pathitems = urlutil.list_paths(ui, search) |
5202 ui.pager(b'paths') | 5200 ui.pager(b'paths') |
5203 | 5201 |
5204 fm = ui.formatter(b'paths', opts) | 5202 fm = ui.formatter(b'paths', pycompat.byteskwargs(opts)) |
5205 if fm.isplain(): | 5203 if fm.isplain(): |
5206 hidepassword = urlutil.hidepassword | 5204 hidepassword = urlutil.hidepassword |
5207 else: | 5205 else: |
5208 hidepassword = bytes | 5206 hidepassword = bytes |
5209 if ui.quiet: | 5207 if ui.quiet: |