U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55460&th=11254#msg_55460
Fortunately, there is one git-server, which allows that. It is called gitolite.
With gitolite you can set pretty much any permission, including unusual permissions like limiting number of changed files in one commit.
Installation is very simple. The only problem that I had when I was trying to install it on Alpine Linux was disabled user "git". I had to enable it.
Gitolite is identifying users by ssh keys. This is less convenient than regular user name and password, but is still quite usable.
Administrator just needs to store multiple ssh keys per user.
Keys can be stored in different folders, or in one folder using pattern "user_name@unique_str.pub
Another argument: Linux kernel developers are using gitolite.
]]>Novo2020-11-13T09:27:10-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55461&th=11254#msg_55461
Anyway, WRT bazaar (and maybe some other parts), I hope that in this development cycle we deliver the "uppiverse" which should allow for gradual transition of bazaar project into separate git repos. Or at least I hope so...
In one extreme I could imagine that even theide moves out of uppsrc to separate repo and the only "locked" part will be core library.
Mirek]]>mirek2020-11-13T09:42:58-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55462&th=11254#msg_55462
Novo wrote on Fri, 13 November 2020 10:27
AFAIK, the main reason why Upp is still using SVN is a problem with fine-grained write permissions for developers. Basically, majority of developers should have write access rights only to "bazaar". Majority of git-servers doesn't allow to do that.
Why not using standard github dev flow where you create PR when you want to contribute. Mirek could accept or reject such PR and that's it ]]>unodgs2020-11-13T10:17:57-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55463&th=11254#msg_55463
unodgs wrote on Fri, 13 November 2020 11:17
Novo wrote on Fri, 13 November 2020 10:27
AFAIK, the main reason why Upp is still using SVN is a problem with fine-grained write permissions for developers. Basically, majority of developers should have write access rights only to "bazaar". Majority of git-servers doesn't allow to do that.
Why not using standard github dev flow where you create PR when you want to contribute. Mirek could accept or reject such PR and that's it
Except I would not like to do that for the bazaar....]]>mirek2020-11-13T11:23:22-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55465&th=11254#msg_55465
unodgs wrote on Fri, 13 November 2020 11:17
Except I would not like to do that for the bazaar....
I think it should be a separate repo anyway with selected users that can accept PR's.]]>unodgs2020-11-13T18:05:02-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55466&th=11254#msg_55466
mirek wrote on Fri, 13 November 2020 04:42
it is also about documentation and that would be harder nut to crack... (as .tpp folders are inside are the permissions need to be dynamically updated).
Gitolite allows to use regular expressions with git refs. It calls them "refex".
There is another even more interesting thing called "virtual ref". You can make your own VREF.
Out of the box you get a "VREF/NAME", which corresponds to a file name.
By combining VREF and regexp you can catch all files ending with ".tpp", or "en-us.tpp" if you'd like, and give specific users or groups of users right to change these files.]]>Novo2020-11-13T23:20:05-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55467&th=11254#msg_55467
mirek wrote on Fri, 13 November 2020 12:23
unodgs wrote on Fri, 13 November 2020 11:17
Except I would not like to do that for the bazaar....
I think it should be a separate repo anyway with selected users that can accept PR's.
That is exactly the plan!
Mirek]]>mirek2020-11-13T23:20:41-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55470&th=11254#msg_55470
Novo wrote on Sat, 14 November 2020 00:20
mirek wrote on Fri, 13 November 2020 04:42
it is also about documentation and that would be harder nut to crack... (as .tpp folders are inside are the permissions need to be dynamically updated).
Gitolite allows to use regular expressions with git refs. It calls them "refex".
There is another even more interesting thing called "virtual ref". You can make your own VREF.
Out of the box you get a "VREF/NAME", which corresponds to a file name.
By combining VREF and regexp you can catch all files ending with ".tpp", or "en-us.tpp" if you'd like, and give specific users or groups of users right to change these files.
I will consider it. However, I think "breaking up" svn now seems like a bit better strategy.
Mirek]]>mirek2020-11-14T12:00:35-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55492&th=11254#msg_55492
mirek wrote on Sat, 14 November 2020 07:00
I will consider it. However, I think "breaking up" svn now seems like a bit better strategy.
Mirek
This is entirely up to you
I just tried to help. Git is not an ideal system. I'd say is much worse than Mercurial, but unfortunately almost everybody is using it, and even worse than that, pretty much all developed VCS tools are developed for Git. ]]>Novo2020-11-15T16:03:00-00:00Re: Using of GIT instead of SVN for Upp development
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55729&th=11254#msg_55729
]]>Didier2020-12-03T18:13:09-00:00