baseline: handle the master -> main alias
1 files changed, 8 insertions(+), 1 deletions(-) M hgext3rd/confman/commands.py
M hgext3rd/confman/commands.py +8 -1
@@ 203,7 203,14 @@ def baseline(ui, repo, *args, **opts): continue ctx = managed.workingctx() - ignoretag = ctx.tag and opts.get("ignoremaster") and ctx.tag.endswith("/master") + ignoretag = ( + ctx.tag + and opts.get("ignoremaster") + and ( + ctx.tag.endswith("/master") + or ctx.tag.endswith("/main") + ) + ) if ctx.tag and not ignoretag: if track != ctx.tag: tagmap[section] = ctx.tag