The function slices and takes the length of this argument without internally
setting it if not provided.  There was no bug here because both callers passed
the argument.
Details
Details
- Reviewers
- None
- Group Reviewers
- hg-reviewers 
- Commits
- rHG1ffbd03c8d75: filemerge: drop a default argument to appease pytype
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
Comment Actions
Shouldn't this be also done for all similar functions? (i.e. _xmergeimm and functions registered as a merge tool with @internaltool)
Comment Actions
I looked at this a bit more, and it looks like the other functions either ignore the labels arg, or they handle the None/empty case to substitute something else. So maybe that's a better thing to do. But I'm not real familiar with merge code, and don't know what the default labels should be here.