This shortens simplemerge() and is a bit cleaner, IMO.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGaa6c290a77fa: filemerge: extract `_picklabels` as a helper function
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
mercurial/simplemerge.py | ||
---|---|---|
411–423 | def _picklabels(defaults, overrides): if len(overrides) > 3: raise error.Abort(_("can only specify three labels.")) result = defaults[:] for i, override in enumerate(overrides): result[i] = override return result no? |
mercurial/simplemerge.py | ||
---|---|---|
411–423 | I think so, not sure why the original was so weird. I'll replace it. |
no?