Show More
@@ -1580,6 +1580,7 b' def perfrevlogwrite(ui, repo, file_=None' | |||||
1580 |
|
1580 | |||
1581 | Possible source values are: |
|
1581 | Possible source values are: | |
1582 | * `full`: add from a full text (default). |
|
1582 | * `full`: add from a full text (default). | |
|
1583 | * `parent-1`: add from a delta to the first parent | |||
1583 | """ |
|
1584 | """ | |
1584 | opts = _byteskwargs(opts) |
|
1585 | opts = _byteskwargs(opts) | |
1585 |
|
1586 | |||
@@ -1591,7 +1592,7 b' def perfrevlogwrite(ui, repo, file_=None' | |||||
1591 | stoprev = rllen + stoprev |
|
1592 | stoprev = rllen + stoprev | |
1592 |
|
1593 | |||
1593 | source = opts['source'] |
|
1594 | source = opts['source'] | |
1594 | validsource = (b'full',) |
|
1595 | validsource = (b'full', b'parent-1') | |
1595 | if source not in validsource: |
|
1596 | if source not in validsource: | |
1596 | raise error.Abort('invalid source type: %s' % source) |
|
1597 | raise error.Abort('invalid source type: %s' % source) | |
1597 |
|
1598 | |||
@@ -1693,6 +1694,9 b' def _getrevisionseed(orig, rev, tr, sour' | |||||
1693 |
|
1694 | |||
1694 | if source == b'full': |
|
1695 | if source == b'full': | |
1695 | text = orig.revision(rev) |
|
1696 | text = orig.revision(rev) | |
|
1697 | elif source == b'parent-1': | |||
|
1698 | baserev = orig.rev(p1) | |||
|
1699 | cachedelta = (baserev, orig.revdiff(p1, rev)) | |||
1696 |
|
1700 | |||
1697 | return ((text, tr, linkrev, p1, p2), |
|
1701 | return ((text, tr, linkrev, p1, p2), | |
1698 | {'node': node, 'flags': flags, 'cachedelta': cachedelta}) |
|
1702 | {'node': node, 'flags': flags, 'cachedelta': cachedelta}) |
General Comments 0
You need to be logged in to leave comments.
Login now