Mercurial > hg
comparison mercurial/repository.py @ 42620:d98ec36be808
convert: add a config option to help doing identity hg->hg conversion
I want to change the computation of the list of files modified by a
commit. In principle, this would simply change a cache. But since this
information is stored in commits rather than a cache, changing it
means changing commit hashes (going forward).
Some users rely on the convert extension from hg to hg not changing
hashes when nothing changes (usually). Allow these users to preserve
hashes despite changes to the changelog files computation by reusing
these files lists when the manifest is unchanged (since these files
list are derived from the manifest).
Differential Revision: https://phab.mercurial-scm.org/D6643
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Sat, 13 Jul 2019 23:45:32 -0400 |
parents | 69921d02daaf |
children | 2128c76c8970 |
comparison
equal
deleted
inserted
replaced
42619:20d0e59be79b | 42620:d98ec36be808 |
---|---|
1654 | 1654 |
1655 def commit(text='', user=None, date=None, match=None, force=False, | 1655 def commit(text='', user=None, date=None, match=None, force=False, |
1656 editor=False, extra=None): | 1656 editor=False, extra=None): |
1657 """Add a new revision to the repository.""" | 1657 """Add a new revision to the repository.""" |
1658 | 1658 |
1659 def commitctx(ctx, error=False): | 1659 def commitctx(ctx, error=False, origctx=None): |
1660 """Commit a commitctx instance to the repository.""" | 1660 """Commit a commitctx instance to the repository.""" |
1661 | 1661 |
1662 def destroying(): | 1662 def destroying(): |
1663 """Inform the repository that nodes are about to be destroyed.""" | 1663 """Inform the repository that nodes are about to be destroyed.""" |
1664 | 1664 |