setuptreestores caters to a lot of configurations through the ui
instance. It makes sense to store the ui instance once instead of referring
to it through repo.ui every time.
Details
Details
- Reviewers
quark - Group Reviewers
Restricted Project
Ran all the tests.
Diff Detail
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
I think the reason there are both ui and repo in @command interface is because some commands do not need a repo but need a ui. Or sometimes repo.ui is different from ui (in chg's case). In this case repo.ui is ui. It is cleaner to avoid two arguments.
treemanifest/__init__.py | ||
---|---|---|
281 | Why not insert ui = repo.ui here? |
treemanifest/__init__.py | ||
---|---|---|
281 | Sure! that works as well! I wanted to be sure I am not missing something. |
Why not insert ui = repo.ui here?