[GeoNetwork-devel] warning of upcoming migration to github

Hi,

Today I setup a github organization for camptocamp: https://github.com/geonetwork.

The organization will be slightly different from the svn organization. First thing is I have taken all the branches in the subversion utilities folder and made separate repositories for each in the organization. Second, I have taken some of the other forks and sandboxes and made repositories of them as well. For example there is an EBRIM repository and schemaplugins. The website is also its own repo.

Next I have split Geonetwork trunk into pieces as well. doc, maven-repo, installer, release, gast are all repositories. BUT they will be linked to from the main repository so a check out will check out all of them.

I warning word of warning though. Those repositories will be checked out as pull-only. So that users without Geonetwork commit access can check out all of the Geonetwork sources. If you want to edit them you will have to edit the .git/config files in the repository you want and change the url. There are probably other ways as well and we will have to learn more about how to do this as time progresses.

Important: Do not clone yet. Tomorrow I will hack the core repository down from 480MB down to 100MB (still will have all history, just jars and wars removed). When I push that up to the main repository and clones or forks that have been done will be broken and will require some real experience with git to get functioning again.

I will send an email tomorrow asking everyone to hold their commits and I will update the core, perform the process to shrink the repository. Once I have pushed that out I will send another email and hopefully every one can start committing to that.

@Committers: Please send me your Github usernames so I can add you to the committer team. Also read the information about creating ssh keys.

If you have any issues please email me for advice. i will also hang out on the IRC and hopefully be able to help out.

jesse

My apologies for the delay. We started presentations just after my email and I found out that the internet turned very slow so it took much longer than expected to download and upload the changes that I needed. But it is all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers guide:

  • to checkout use: git clone --recursive
  • that is required if you want the submodules as well as the main geonetwork
  • It is not required if you don’t mind building without gast
  • I updated the pom.xml so gast is built if present but not built if not checked out- To edit a submodule (like gast) you have to do the following:
  • (There may be a better way but this works)
  • cd gast
  • git checkout master (or other branch if on 2.8 checkout 2.8.x)
  • work work work

  • commit

  • git remote set-url origin git@anonymised.com…:geonetwork/core-gast.git
  • This is required because the submodules checkout with the read only url so anyone can check out repo- git push origin- When switching branches the submodules are annoying because you have to switch them as well. To make it easier I have added a script that does the given action to all submodules as well as the main repository. Here are 2 ways to switch branches:
  • ./git-all checkout 2.8.x
  • git checkout 2.8.x; git submodules foreach “git checkout 2.8.x”- I think the second method will work from any directory but the first must be executed from root.
  • I need to see how to do this with GUI tools. I have only worked on the command line so far.
    Well good luck and let me know what issues you have and I will try to help.

Jesse

Thanks Jesse for that job. Does it mean that Geonetwork official
repository is now Git?
I think this will greatly encourage contributions to Geonetwork, as it
makes much easier to maintain customized branches while being
synchronized with the main repo. Congratulations for the project!

Best regards,

César

2012/6/14 Jesse Eichar <jesse.eichar@anonymised.com>:

My apologies for the delay. We started presentations just after my email
and I found out that the internet turned very slow so it took much longer
than expected to download and upload the changes that I needed. But it is
all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers
guide:

to checkout use: git clone --recursive

that is required if you want the submodules as well as the main geonetwork
It is not required if you don't mind building without gast
I updated the pom.xml so gast is built if present but not built if not
checked out

To edit a submodule (like gast) you have to do the following:

(There may be a better way but this works)
cd gast
git checkout master (or other branch if on 2.8 checkout 2.8.x)
# work work work
# commit
git remote set-url origin git@anonymised.com:geonetwork/core-gast.git

This is required because the submodules checkout with the read only url so
anyone can check out repo

git push origin

When switching branches the submodules are annoying because you have to
switch them as well. To make it easier I have added a script that does the
given action to all submodules as well as the main repository. Here are 2
ways to switch branches:

./git-all checkout 2.8.x
git checkout 2.8.x; git submodules foreach "git checkout 2.8.x"

I think the second method will work from any directory but the first must be
executed from root.
I need to see how to do this with GUI tools. I have only worked on the
command line so far.

Well good luck and let me know what issues you have and I will try to help.

Jesse

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
César Martínez Izquierdo
GIS developer
- - - - - - - - - - - - - - - - - - - -
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I still have to update the documentation but yes it is the new official repository and the hope is that we can get more patches thanks to pull requests etc…

jesse

On Thu, Jun 14, 2012 at 5:09 PM, César Martínez Izquierdo <cesar.izq@anonymised.com…31…> wrote:

Thanks Jesse for that job. Does it mean that Geonetwork official
repository is now Git?
I think this will greatly encourage contributions to Geonetwork, as it
makes much easier to maintain customized branches while being
synchronized with the main repo. Congratulations for the project!

Best regards,

César

2012/6/14 Jesse Eichar <jesse.eichar@anonymised.com>:

My apologies for the delay. We started presentations just after my email
and I found out that the internet turned very slow so it took much longer
than expected to download and upload the changes that I needed. But it is
all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers
guide:

to checkout use: git clone --recursive

that is required if you want the submodules as well as the main geonetwork
It is not required if you don’t mind building without gast
I updated the pom.xml so gast is built if present but not built if not
checked out

To edit a submodule (like gast) you have to do the following:

(There may be a better way but this works)
cd gast
git checkout master (or other branch if on 2.8 checkout 2.8.x)

work work work

commit

git remote set-url origin git@anonymised.com:geonetwork/core-gast.git

This is required because the submodules checkout with the read only url so
anyone can check out repo

git push origin

When switching branches the submodules are annoying because you have to
switch them as well. To make it easier I have added a script that does the
given action to all submodules as well as the main repository. Here are 2
ways to switch branches:

./git-all checkout 2.8.x
git checkout 2.8.x; git submodules foreach “git checkout 2.8.x”

I think the second method will work from any directory but the first must be
executed from root.
I need to see how to do this with GUI tools. I have only worked on the
command line so far.

Well good luck and let me know what issues you have and I will try to help.

Jesse


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork


César Martínez Izquierdo
GIS developer


ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


Results from testing Github app:

Github app does not switch submodules when switching to another branch so it will show that the submodules have changes because they point to a different version. You can ignore that if you are not working on one of the submodules.

So git-tower handles submodules well. Let me know if you find other applications that do. I would like to find one for windows for windows users.

Jesse

On Thu, Jun 14, 2012 at 5:14 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

I still have to update the documentation but yes it is the new official repository and the hope is that we can get more patches thanks to pull requests etc…

jesse

On Thu, Jun 14, 2012 at 5:09 PM, César Martínez Izquierdo <cesar.izq@anonymised.com> wrote:

Thanks Jesse for that job. Does it mean that Geonetwork official
repository is now Git?
I think this will greatly encourage contributions to Geonetwork, as it
makes much easier to maintain customized branches while being
synchronized with the main repo. Congratulations for the project!

Best regards,

César

2012/6/14 Jesse Eichar <jesse.eichar@anonymised.com>:

My apologies for the delay. We started presentations just after my email
and I found out that the internet turned very slow so it took much longer
than expected to download and upload the changes that I needed. But it is
all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers
guide:

to checkout use: git clone --recursive

that is required if you want the submodules as well as the main geonetwork
It is not required if you don’t mind building without gast
I updated the pom.xml so gast is built if present but not built if not
checked out

To edit a submodule (like gast) you have to do the following:

(There may be a better way but this works)
cd gast
git checkout master (or other branch if on 2.8 checkout 2.8.x)

work work work

commit

git remote set-url origin git@anonymised.com:geonetwork/core-gast.git

This is required because the submodules checkout with the read only url so
anyone can check out repo

git push origin

When switching branches the submodules are annoying because you have to
switch them as well. To make it easier I have added a script that does the
given action to all submodules as well as the main repository. Here are 2
ways to switch branches:

./git-all checkout 2.8.x
git checkout 2.8.x; git submodules foreach “git checkout 2.8.x”

I think the second method will work from any directory but the first must be
executed from root.
I need to see how to do this with GUI tools. I have only worked on the
command line so far.

Well good luck and let me know what issues you have and I will try to help.

Jesse


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork


César Martínez Izquierdo
GIS developer


ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


I am writing some docs right now and I see that SmartGit has submodules support as well. It is available on all platforms and has a free license for non commercial users.

I haven’t tried it yet.

Jesse

On Thu, Jun 14, 2012 at 5:24 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

Results from testing Github app:

Github app does not switch submodules when switching to another branch so it will show that the submodules have changes because they point to a different version. You can ignore that if you are not working on one of the submodules.

So git-tower handles submodules well. Let me know if you find other applications that do. I would like to find one for windows for windows users.

Jesse

On Thu, Jun 14, 2012 at 5:14 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

I still have to update the documentation but yes it is the new official repository and the hope is that we can get more patches thanks to pull requests etc…

jesse

On Thu, Jun 14, 2012 at 5:09 PM, César Martínez Izquierdo <cesar.izq@anonymised.com> wrote:

Thanks Jesse for that job. Does it mean that Geonetwork official
repository is now Git?
I think this will greatly encourage contributions to Geonetwork, as it
makes much easier to maintain customized branches while being
synchronized with the main repo. Congratulations for the project!

Best regards,

César

2012/6/14 Jesse Eichar <jesse.eichar@anonymised.com>:

My apologies for the delay. We started presentations just after my email
and I found out that the internet turned very slow so it took much longer
than expected to download and upload the changes that I needed. But it is
all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers
guide:

to checkout use: git clone --recursive

that is required if you want the submodules as well as the main geonetwork
It is not required if you don’t mind building without gast
I updated the pom.xml so gast is built if present but not built if not
checked out

To edit a submodule (like gast) you have to do the following:

(There may be a better way but this works)
cd gast
git checkout master (or other branch if on 2.8 checkout 2.8.x)

work work work

commit

git remote set-url origin git@anonymised.com:geonetwork/core-gast.git

This is required because the submodules checkout with the read only url so
anyone can check out repo

git push origin

When switching branches the submodules are annoying because you have to
switch them as well. To make it easier I have added a script that does the
given action to all submodules as well as the main repository. Here are 2
ways to switch branches:

./git-all checkout 2.8.x
git checkout 2.8.x; git submodules foreach “git checkout 2.8.x”

I think the second method will work from any directory but the first must be
executed from root.
I need to see how to do this with GUI tools. I have only worked on the
command line so far.

Well good luck and let me know what issues you have and I will try to help.

Jesse


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork


César Martínez Izquierdo
GIS developer


ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


2 More options that support submodules:

Jesse

On Thu, Jun 14, 2012 at 8:44 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

I am writing some docs right now and I see that SmartGit has submodules support as well. It is available on all platforms and has a free license for non commercial users.

I haven’t tried it yet.

Jesse

On Thu, Jun 14, 2012 at 5:24 PM, Jesse Eichar <jesse.eichar@anonymised.com…189…> wrote:

Results from testing Github app:

Github app does not switch submodules when switching to another branch so it will show that the submodules have changes because they point to a different version. You can ignore that if you are not working on one of the submodules.

So git-tower handles submodules well. Let me know if you find other applications that do. I would like to find one for windows for windows users.

Jesse

On Thu, Jun 14, 2012 at 5:14 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

I still have to update the documentation but yes it is the new official repository and the hope is that we can get more patches thanks to pull requests etc…

jesse

On Thu, Jun 14, 2012 at 5:09 PM, César Martínez Izquierdo <cesar.izq@anonymised.com> wrote:

Thanks Jesse for that job. Does it mean that Geonetwork official
repository is now Git?
I think this will greatly encourage contributions to Geonetwork, as it
makes much easier to maintain customized branches while being
synchronized with the main repo. Congratulations for the project!

Best regards,

César

2012/6/14 Jesse Eichar <jesse.eichar@anonymised.com>:

My apologies for the delay. We started presentations just after my email
and I found out that the internet turned very slow so it took much longer
than expected to download and upload the changes that I needed. But it is
all done now and github is ready for use.

There are a few quirks I have found so far. I will put it in the developers
guide:

to checkout use: git clone --recursive

that is required if you want the submodules as well as the main geonetwork
It is not required if you don’t mind building without gast
I updated the pom.xml so gast is built if present but not built if not
checked out

To edit a submodule (like gast) you have to do the following:

(There may be a better way but this works)
cd gast
git checkout master (or other branch if on 2.8 checkout 2.8.x)

work work work

commit

git remote set-url origin git@anonymised.com:geonetwork/core-gast.git

This is required because the submodules checkout with the read only url so
anyone can check out repo

git push origin

When switching branches the submodules are annoying because you have to
switch them as well. To make it easier I have added a script that does the
given action to all submodules as well as the main repository. Here are 2
ways to switch branches:

./git-all checkout 2.8.x
git checkout 2.8.x; git submodules foreach “git checkout 2.8.x”

I think the second method will work from any directory but the first must be
executed from root.
I need to see how to do this with GUI tools. I have only worked on the
command line so far.

Well good luck and let me know what issues you have and I will try to help.

Jesse


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork


César Martínez Izquierdo
GIS developer


ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


I noticed, that in order to checkout the schema plugin in svn, the url is.

https://github.com/geonetwork/schema-plugins/trunk/trunk

Shouldn't the duplicate * trunk/trunk* folders be fixed.

It may be easier to do it now?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/warning-of-upcoming-migration-to-github-tp4981263p4981672.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

It also seems like you committed the .svn folders in the schema plugin repo.
Making it difficult to checkout with subversion.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/warning-of-upcoming-migration-to-github-tp4981263p4981673.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

I have not looked in fact. If you want this perhaps you can make a pull request? I am pretty busy and am not sure when I will have time for this.

Jesse

On Fri, Jun 15, 2012 at 1:09 PM, ianwallen <ianwallen@anonymised.com> wrote:

I noticed, that in order to checkout the schema plugin in svn, the url is.

https://github.com/geonetwork/schema-plugins/trunk/trunk

Shouldn’t the duplicate * trunk/trunk* folders be fixed.

It may be easier to do it now?


View this message in context: http://osgeo-org.1560.n6.nabble.com/warning-of-upcoming-migration-to-github-tp4981263p4981672.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Somehow it doesn't surprise me that you are busy

I just wanted to inform the group so that hopefully someday it gets fixed.

Thanks.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/warning-of-upcoming-migration-to-github-tp4981263p4981679.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

2012/6/15 ianwallen <ianwallen@anonymised.com>:

It also seems like you committed the .svn folders in the schema plugin repo.

Fixed https://github.com/geonetwork/schema-plugins/commits/master

Francois

Making it difficult to checkout with subversion.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/warning-of-upcoming-migration-to-github-tp4981263p4981673.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork