pwclient: allow per-directory settings
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 pwclient 的入口点及其对 ~/.pwclientrc 的处理,然后比较两种拟议的配置方案:按项目进行目录匹配,或每个目录使用一个 .pwclientrc。所需的方案和匹配规则必须在实现之前确定;done 应包括自动选择项目,而无需显式的项目参数。
由索引模型根据 Issue 内容生成。
描述
Currently, pwclient settings are stored in a single file (~/.pwclientrc), where multiple projects can be defined, but there is only one default.
[options]
default=linuxppc-dev
[linuxppc-dev]
url=https://patchwork.ozlabs.org/patchwork/xmlrpc/
[skiboot]
url=https://patchwork.ozlabs.org/patchwork/xmlrpc/
[snowpatch]
url=https://patchwork.ozlabs.ibm.com/patchwork/xmlrpc/ # Use our internal test patchwork
I use pwclient across a number of projects. pwclient should be able to figure out which project I'm looking at without me always having to explicitly specify it.
I'm thinking something along the lines of:
[options]
default=linuxppc-dev
[linuxppc-dev]
url=https://patchwork.ozlabs.org/patchwork/xmlrpc/
dir=/home/ajd/code/linux/
[skiboot]
url=https://patchwork.ozlabs.org/patchwork/xmlrpc/
dir=/home/ajd/code/skiboot*/ # Match a few different skiboot worktrees
[snowpatch]
url=https://patchwork.ozlabs.ibm.com/patchwork/xmlrpc/ # Use our internal test patchwork
dir=/home/ajd/code/snowpatch/
(the dir option is added)
Alternatively, a per-directory .pwclientrc, which could perhaps be distributed through the project's git repo.
[default]
project=snowpatch
url=https://patchwork.ozlabs.org/patchwork/xmlrpc/
(I haven't taken a good look at the pwclient source, so I haven't worked out how much work would be involved in doing this properly...)
- 主要语言
- Python
- 星标
- 317
- 派生
- 91
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getpatchwork/patchwork 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
getpatchwork/patchwork#668 ·
-
bug web-ui
难度 2/5 1-3 小时 新手友好度 74/100
getpatchwork/patchwork#546 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
getpatchwork/patchwork#664 ·
-
难度 4/5 3-5 天 新手友好度 48/100
getpatchwork/patchwork#663 ·
-
难度 3/5 1-2 天 新手友好度 45/100
getpatchwork/patchwork#645 ·
查看 getpatchwork/patchwork 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
learningequality/ricecooker#747 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 76/100
run-llama/llama_index#23199 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
KhronosGroup/glTF-Blender-IO#2769 ·