[PATCH default] convert: update hg convert source to accept revsets as revs

Yuya Nishihara yuya at tcha.org
Wed May 24 10:01:30 EDT 2017


On Tue, 23 May 2017 15:21:59 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1495542603 -7200
> #      Tue May 23 14:30:03 2017 +0200
> # Node ID 1e4860f3409aec9fc81e65a53c8e107d1c9c815a
> # Parent  e8c043375b53b30c4b468687f08323cbeeb452ef
> # EXP-Topic convert-revset
> convert: update hg convert source to accept revsets as revs
> 
> My usecase is to pass a revset like (limit(all(), X, 0)) to convert hg source
> repositories pieces by pieces as it seems that hg convert leaks memory. This
> way we can bypass the problem by processing the repositories small pieces at
> the time.

Maybe you want --config convert.hg.revs= ?

https://www.mercurial-scm.org/repo/hg/rev/e271970b9821

I don't think it's a conflicting idea to make --rev accept revsets (as long as
it's interpreted as a head revision), but e271970b9821 is worth reading.


More information about the Mercurial-devel mailing list