Bitbucket ends mercurial support

General project and community related discussions and offtopic threads.
User avatar
B.Y.O.B.
Developer
Posts: 3680
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Bitbucket ends mercurial support

Post by B.Y.O.B. » Thu Jan 23, 2020 12:24 am

https://bitbucket.org/blog/sunsetting-m ... -bitbucket

Most of the old LuxRender repositories use mercurial: https://bitbucket.org/account/user/luxr ... jects/PROJ
We could consider porting them to git, either on bitbucket or on our new github project.

acasta69
Developer
Posts: 341
Joined: Tue Jan 09, 2018 3:45 pm

Re: Bitbucket ends mercurial support

Post by acasta69 » Fri Jan 24, 2020 10:48 am

B.Y.O.B. wrote:
Thu Jan 23, 2020 12:24 am
We could consider porting them to git, either on bitbucket or on our new github project.
That would be a good thing, I think.

From some initial test I did locally, conversion is not totally painless...
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

User avatar
Dade
Developer
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bitbucket ends mercurial support

Post by Dade » Fri Jan 24, 2020 11:02 am

acasta69 wrote:
Fri Jan 24, 2020 10:48 am
B.Y.O.B. wrote:
Thu Jan 23, 2020 12:24 am
We could consider porting them to git, either on bitbucket or on our new github project.
That would be a good thing, I think.

From some initial test I did locally, conversion is not totally painless...
I did the migration to GitHub at one point but the idea was than rejected. I have kept https://github.com/orgs/LuxRender/dashboard exactly for this task. The problem was in large binary files stored in original mercurial repositories.

But the only repositories that may be a good idea to save are the one with sources. The one with binaries for Windows/Linux/MacOS are so outdated we can probably trash them.

Acasta69, if you want to try to do the migration to https://github.com/orgs/LuxRender, I can give you admin rights.

P.S. the mercurial repositories are here: https://bitbucket.org/%7B019a5fcb-cfaf- ... 000916%7D/
Support LuxCoreRender project with salts and bounties

acasta69
Developer
Posts: 341
Joined: Tue Jan 09, 2018 3:45 pm

Re: Bitbucket ends mercurial support

Post by acasta69 » Mon Jan 27, 2020 8:31 am

Dade wrote:
Fri Jan 24, 2020 11:02 am
Acasta69, if you want to try to do the migration to https://github.com/orgs/LuxRender, I can give you admin rights.
OK, I'll look into that.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

acasta69
Developer
Posts: 341
Joined: Tue Jan 09, 2018 3:45 pm

Re: Bitbucket ends mercurial support

Post by acasta69 » Tue Jan 28, 2020 12:55 pm

After some tests, it seems that the hg-fast-export tool works fine.
The plain conversion command produces some errors:

Code: Select all

$ ../../fast-export-master/hg-fast-export.sh -r ../../luxrender/luxtest
Error: The option core.ignoreCase is set to true in the git
repository. This will produce empty changesets for renames that just
change the case of the file name.
Use --force to skip this check or change the option with
git config core.ignoreCase false

Code: Select all

Error: repository has at least one unnamed head: hg r3113
The latter refers to deleted branches in the mercurial repos, which git cannot interpret correctly.

Using --force gets rid of the errors and the resulting git repository is apparently ok (I've tried lux and luxrays at the moment).
In next days I'll upload these so that anyone can check if they want, and proceed with other conversions.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

User avatar
B.Y.O.B.
Developer
Posts: 3680
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bitbucket ends mercurial support

Post by B.Y.O.B. » Tue Jan 28, 2020 1:57 pm

Great work, thanks a lot Alessandro!

acasta69
Developer
Posts: 341
Joined: Tue Jan 09, 2018 3:45 pm

Re: Bitbucket ends mercurial support

Post by acasta69 » Sun Feb 02, 2020 11:41 am

At the moment I have uploaded the following repos:
  • Lux
  • LuxRays
  • Windows
  • Linux
They look ok to me (I had some doubt about Unix/Windows style line feeds, but probably Git automatically converts text files to the right style for the client system).
If anyone wants to check and finds something wrong, let me know and I'll try to fix it.
Also note that I uploaded the contents of the previous Mercurial repos as they are. For example I did not convert .hgignore files to .gitignore. I guess this can be enough for a reference copy, but tell if you think otherwise.
Dade wrote:
Fri Jan 24, 2020 11:02 am
But the only repositories that may be a good idea to save are the one with sources. The one with binaries for Windows/Linux/MacOS are so outdated we can probably trash them.
The MacOS version had only one repo for compilation environment and binaries, it weighs approx 1 GB total in the mercurial version.
The simplest would be to port everything, if we have no storage problems.

For the linux_deps and windows_deps we have three choices:
  1. discard them as Dade suggested;
  2. keep them on BitBucket, if possible: they are already in git format, so they should not be deleted;
  3. or try to upload only a binary file, to keep a reference of the last-working deps but save some storage.
What do you think?
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

acasta69
Developer
Posts: 341
Joined: Tue Jan 09, 2018 3:45 pm

Re: Bitbucket ends mercurial support

Post by acasta69 » Mon Feb 10, 2020 2:47 pm

Update about ported repos:
  • LuxBlend25 / LuxBlend
  • LuxMark
  • Other exporters (Su2Lux, LuxMaya, etc.)
  • TestSuite
About LuxMax exporter: there are already 2 old repos because of previous activity. Saving the last status would mean creating the third one. What do you think of deleting the existing so to have only the last version?
Dade, if you agree, could you please delete them? I don't have the rights to do that. They are:
  • LuxMax
  • LuxMax-old-version-archived
To be done:
  • LuxFire
  • LuxViewer
  • AzureRender
  • Windows_Installer
Since there was no comment to the previous post, I'll keep for good Dade's idea to discard repos with binary deps (this includes also the MacOS compile environment).
I have made a local copy, so if you change your mind I can always upload them.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

User avatar
Dade
Developer
Posts: 4488
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bitbucket ends mercurial support

Post by Dade » Mon Feb 10, 2020 3:05 pm

acasta69 wrote:
Mon Feb 10, 2020 2:47 pm
About LuxMax exporter: there are already 2 old repos because of previous activity. Saving the last status would mean creating the third one. What do you think of deleting the existing so to have only the last version?
Dade, if you agree, could you please delete them? I don't have the rights to do that. They are:
  • LuxMax
  • LuxMax-old-version-archived
I don't really remember the difference between the various repositories but I would just rename them (i.e. it costs nothing).
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 3680
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bitbucket ends mercurial support

Post by B.Y.O.B. » Mon Feb 10, 2020 3:46 pm

Thank you for your efforts Alessandro!

Post Reply