|Re: [eigen] Bitbucket migration|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Bitbucket migration
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 12 Sep 2019 00:37:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RfS/s+JmaVT7gFhAhAa1yk7tQQ5hVMlKznu4GKFTQBQ=; b=Xb7CDSvFDW+dagt3n/NIbfwqPsNotVc7ipfekrT4lqiRAle3Phhidy73yAVZi07JRM FCG6s9DqawhcQPouYob2jy+rcSqrL5bX0jSLHfeL0VVrD/ScnVeRbQ/sBkEmm128NbZ6 wraE9tsxDRE2A43AtRT+SavGqYlC/PdKBmTP7gfyoPmTfv9FjhUBkNGb9kkott6wLNrO 4MqgQmTRaXq2uCG/EuruHDfRmDdRLtLQA3uHLVO+6YWdTyjQAwsmu+FxzcUFl0TvAAS3 4yEaa09FIgv6o5rCwxs9Sr44GxXxEGkVTPh4iN9MO0mM4YVTb4K8DgigiVRM0Beomoz8 jvSw==
Dear Eigen developers,
- I can convert all reference like to revisions or mercurial hashes that
follows the regex in .
- I did not try to convert URLs although it should not be hard.
- I manually edited the author file  so that they would fit git
author format. If you find yourself in the list and want to update it,
you can contact me.
It should not be hard to add more rules to the plugin convert_references
if anyone feels like doing it.
Le 11/09/2019 à 18:03, Gael Guennebaud a écrit :
> To prepare the migration from bitbucket, I started to play a bit with
> its API to see what could be done. So far I've quickly draft two
> (ugly) python scripts to archive the forks and pull-requests. Since
> this is a one shot for us, I did not cared about robustness, safety,
> generality, beauty, etc.
> You can see them there
> : https://gitlab.com/ggael/bitbucket-migration-tools and contribute!
> ** Forks **
> You can see the summary of the fork script
> there: http://manao.inria.fr/eigen_tmp/archive_forks_log.html
> The hg clones (history+checkout) represents 20GB, maybe 12GB if we
> remove the checkouts. Among the 460 forks, 214 seems to have no change
> at all (according to "hg out") and could be dropped. I don't know yet
> where to host them though.
> This script can be ran incrementally.
> ** Pull-Requests **
> You can find the output of the pull-requests script
> there: http://manao.inria.fr/eigen_tmp/pullrequests/
> There is a short summary, and then for each PR a static .html file
> plus diff/patch files, and other details. For instance,
> see: http://manao.inria.fr/eigen_tmp/pullrequests/OPEN/686/pr686.html
> Currently this script cannot be ran incrementally. You have to run it
> just before closing the respective repository!
> Also, this script does not grab inline comments. Only the main
> discussions is archived. Those can be obtained by iterating over the
> "activity" pages, but I don't think that's worth the effort because
> they would be difficult to exploit anyway.
> ** hg to git **
> As discussed in the other thread, if we switch from hg to git, then
> all hashes will have to be updated. Generating a map file is easy, and
> thus updating the links/hashes in bug comments and PR comments should
> not be too difficult (we only have to figure out the right regex to
> catch all variants).
> However, updating the hashes within the commit messages will require
> to rewrite the whole history in a careful order. Does anyone here
> feels brave enough to write such a script? If not, I guess we could
> live with an online php script doing the hash conversion on demand. I
> don't think we'll have to follow such hashes so frequently.