Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 37599:42a91897f090
export: remove unused argument 'rev' from _exportsingle()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 12 Apr 2018 21:47:17 +0900 |
parents | d110167610db |
children | 7800ed2e4980 |
comparison
equal
deleted
inserted
replaced
37598:7a9c905e51f9 | 37599:42a91897f090 |
---|---|
1524 # mapping from identifier to actual export function | 1524 # mapping from identifier to actual export function |
1525 # function as to return a string to be added to the header or None | 1525 # function as to return a string to be added to the header or None |
1526 # it is given two arguments (sequencenumber, changectx) | 1526 # it is given two arguments (sequencenumber, changectx) |
1527 extraexportmap = {} | 1527 extraexportmap = {} |
1528 | 1528 |
1529 def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): | 1529 def _exportsingle(repo, ctx, match, switch_parent, seqno, write, diffopts): |
1530 node = scmutil.binnode(ctx) | 1530 node = scmutil.binnode(ctx) |
1531 parents = [p.node() for p in ctx.parents() if p] | 1531 parents = [p.node() for p in ctx.parents() if p] |
1532 branch = ctx.branch() | 1532 branch = ctx.branch() |
1533 if switch_parent: | 1533 if switch_parent: |
1534 parents.reverse() | 1534 parents.reverse() |
1609 def write(s, **kw): | 1609 def write(s, **kw): |
1610 fo.write(s) | 1610 fo.write(s) |
1611 if not dest.startswith('<'): | 1611 if not dest.startswith('<'): |
1612 repo.ui.note("%s\n" % dest) | 1612 repo.ui.note("%s\n" % dest) |
1613 _exportsingle( | 1613 _exportsingle( |
1614 repo, ctx, match, switch_parent, rev, seqno, write, opts) | 1614 repo, ctx, match, switch_parent, seqno, write, opts) |
1615 if fo is not None: | 1615 if fo is not None: |
1616 fo.close() | 1616 fo.close() |
1617 | 1617 |
1618 def showmarker(fm, marker, index=None): | 1618 def showmarker(fm, marker, index=None): |
1619 """utility function to display obsolescence marker in a readable way | 1619 """utility function to display obsolescence marker in a readable way |