If we want to eventually store sidedata we need to be able to pass them along.
Details
Details
- Reviewers
yuja durin42 indygreg - Group Reviewers
hg-reviewers - Commits
- rHG33532939c667: revlog: add a `sidedata` parameters to addrevision
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/remotefilelog/remotefilelog.py | ||
---|---|---|
132–133 | Why an empty tuple here? Isn't None more Pythonic? |
hgext/remotefilelog/remotefilelog.py | ||
---|---|---|
132–133 | because it can be iterated over as a noop. |
hgext/remotefilelog/remotefilelog.py | ||
---|---|---|
132–133 | I agree with Greg: if your intent is "optional iterable of data", the tuple is misguided and will cause problems for typecheckers. I know it adds two lines, but None is the correct way to spell "optional value that was empty" in this case. |
hgext/remotefilelog/remotefilelog.py | ||
---|---|---|
132–133 | You fixed the default in revlog.py but not in remotefilelog.py. |
Why an empty tuple here? Isn't None more Pythonic?