No clue when we stopped using it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| Lint Skipped |
| Unit Tests Skipped |
@yuja made a much better version of this series, albeit without CBOR.
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/cmdutil.py (4 lines) |
| # facility to let extensions include additional data in an exported patch | # facility to let extensions include additional data in an exported patch | ||||
| # list of identifiers to be executed in order | # list of identifiers to be executed in order | ||||
| extraexport = [] | extraexport = [] | ||||
| # mapping from identifier to actual export function | # mapping from identifier to actual export function | ||||
| # function as to return a string to be added to the header or None | # function as to return a string to be added to the header or None | ||||
| # it is given two arguments (sequencenumber, changectx) | # it is given two arguments (sequencenumber, changectx) | ||||
| extraexportmap = {} | extraexportmap = {} | ||||
| def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): | def _exportsingle(repo, ctx, match, switch_parent, seqno, write, diffopts): | ||||
| node = scmutil.binnode(ctx) | node = scmutil.binnode(ctx) | ||||
| parents = [p.node() for p in ctx.parents() if p] | parents = [p.node() for p in ctx.parents() if p] | ||||
| branch = ctx.branch() | branch = ctx.branch() | ||||
| if switch_parent: | if switch_parent: | ||||
| parents.reverse() | parents.reverse() | ||||
| if parents: | if parents: | ||||
| prev = parents[0] | prev = parents[0] | ||||
| fo = makefileobj(ctx, fntemplate, mode='wb', modemap=filemode, | fo = makefileobj(ctx, fntemplate, mode='wb', modemap=filemode, | ||||
| total=total, seqno=seqno, revwidth=revwidth) | total=total, seqno=seqno, revwidth=revwidth) | ||||
| dest = fo.name | dest = fo.name | ||||
| def write(s, **kw): | def write(s, **kw): | ||||
| fo.write(s) | fo.write(s) | ||||
| if not dest.startswith('<'): | if not dest.startswith('<'): | ||||
| repo.ui.note("%s\n" % dest) | repo.ui.note("%s\n" % dest) | ||||
| _exportsingle( | _exportsingle( | ||||
| repo, ctx, match, switch_parent, rev, seqno, write, opts) | repo, ctx, match, switch_parent, seqno, write, opts) | ||||
| if fo is not None: | if fo is not None: | ||||
| fo.close() | fo.close() | ||||
| def showmarker(fm, marker, index=None): | def showmarker(fm, marker, index=None): | ||||
| """utility function to display obsolescence marker in a readable way | """utility function to display obsolescence marker in a readable way | ||||
| To be used by debug function.""" | To be used by debug function.""" | ||||
| if index is not None: | if index is not None: | ||||