This is an archive of the discontinued Mercurial Phabricator instance.

config: fix default config value for svn.trunk
AbandonedPublic

Authored by lothiraldan on Oct 19 2017, 9:35 AM.

Details

Reviewers
durin42
Group Reviewers
hg-reviewers
Summary

Instead of fallbacking on a default in code, declare the right default during
configuration registration so the code is slightly cleaner.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Oct 19 2017, 9:35 AM
durin42 requested changes to this revision.Oct 19 2017, 10:54 AM
durin42 added a subscriber: durin42.

That's not the only place it's used. I don't have it in front of me, but look for trunk in other places (it's where svn.tags and svn.branches get used as well). The other callsite *needs* the default to be None.

This revision now requires changes to proceed.Oct 19 2017, 10:54 AM
lothiraldan abandoned this revision.Oct 19 2017, 10:58 AM

Indeed, the getcfgpath function also calls it, my bad.