[PATCH] convert: record the source revision in the changelog
Alexis S. L. Carvalho
alexis at cecm.usp.br
Fri Jul 13 10:19:57 CDT 2007
Thus spake Brendan Cully:
> On Friday, 13 July 2007 at 06:47, Alexis S. L. Carvalho wrote:
> > > + if commit.branch:
> > > + extra['branch'] = commit.branch
> > > + if commit.rev:
> > > + extra['source_revision'] = commit.rev
> >
> > At the time transplant_source was added, we sort of agreed on
> > "<extensionprefix>_<field>".
>
> ok. convert_revision?
Sounds fine.
> > - should we also save the name of the source SCM?
>
> we could. In practice I expect that it's pretty easy to
> reconstruct. It'll probably be obvious from the revision number anyway
> (it is so far).
Things could get a bit murkier if/when we add e.g. a monotone converter,
since it (like git) also uses SHA-1s as the revision id. But I don't
really think we'll have many repos with revisions coming from half a
dozen different SCMs, so this shouldn't matter too much...
Alexis
More information about the Mercurial-devel
mailing list