vcs-fast-import-devs team mailing list archive
-
vcs-fast-import-devs team
-
Mailing list archive
-
Message #00059
Re: RFC: Substitution of marks to commit-ids in log messages
Max Bowsher wrote:
> I am working on a conversion, in which I want to refer to
> destination-VCS's commit ids in revision log messages - i.e. I want to
> insert text into commit messages which says something like
> "Cherrypick <git-hash-or-bzr-revid-or-...-goes-here>".
>
> The obvious problem is that the tool writing the fastimport stream
> doesn't know these, because they only get allocated by the importer.
>
> I would like to propose that a new importer feature be declared,
> "commit-message-mark-expansion", in which the importer is expected to
> substitute substrings of commit messages looking like <{[:12345]}> with
> the destination VCS's native revision id for the given mark.
>
> What do you think?
A further issue.... I find myself wanting to refer to branches by name
.... but git calls the main branch 'master', whilst other fastimporters
will typically remap master to their own conventions for primary branch.
Hm. I wonder if I need a "map this string in the way you would map a
branch ref" substitution.
Max.
Attachment:
signature.asc
Description: OpenPGP digital signature
References