@@ 74,7 74,8 @@ def ensureconf(ui, repo, *args, **opts):
@command('cfbaseline',
DEFAULTOPTS + [
('', 'force-hgconf', False, 'force the generation of an .hgconf file'),
- ('', 'propagate', False, 'edit inner configuration also')])
+ ('', 'propagate', False, 'edit inner configuration also'),
+ ('Z', 'ignoremaster', True, 'ignore the <origin>/master tag')])
def baseline(ui, repo, *args, **opts):
"""update the track attributes with cset hashes or matching tags
@@ 105,7 106,8 @@ def baseline(ui, repo, *args, **opts):
continue
ctx = managed.workingctx()
- if ctx.tag:
+ ignoretag = ctx.tag and opts.get('ignoremaster') and ctx.tag.endswith('/master')
+ if ctx.tag and not ignoretag:
if track != ctx.tag:
tagmap[section] = ctx.tag
else: