Subversion subrepositories and revisions stored in .hgsubstate

Martin Geisler mg at aragost.com
Wed Jan 19 06:38:38 CST 2011


Oleg Stepanov <oleg.stepanov at jetbrains.com> writes:

> Hi,
>
>   Why does hg store revision number for svn subrepositories in
> .hgsubstate instead of last changed revision for the actual svn path?
> The way it currently is .hgsubstate updates more frequently than
> needed which results in excess commits.

I guess nobody has thought about this before you... since Mercurial does
not support partial checkouts, storing the repository-wide changeset ID
makes sense for Mercurial subrepos, but with Subversion you can indeed
get unnecessary commits to the .hgsubstate file if you only checkout a
subtree of your Subversion repository.

I think we can fix this if you come up with a way to query SVN for when
a subtree was last touched.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/en/services/mercurial/blog/


More information about the Mercurial-devel mailing list