Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

svn external for a given git tag

tcraig

Member
In the new cesm1_4_beta04 tag, cime now points to the github version,  cime  https://github.com/CESM-Development/cime/tags/cime0.3.34how do you generate this https path in github?  i've looked at the documentation and played around with the github web interface and can't figure it out.   
 

jedwards

CSEG and Liaisons
Staff member
The path is automatically created when you push a tag to github.   If you look at the github web interface you will see something like this at the top of the page: 994 commits 46 branches 128 releases 2 contributors[/list]If you click on the branches you will see a list of all of the branches in the repo, if you click on releases you will see all of the tags and an automatically generated tar file for each one.  Each time you push a tag to github it does all of this for you.   In addition all tags are listed and accessable from the /tags subdirectory in the web address.    
 

santos

Member
Do you mean, how do you post a tag at this URL in the first place, or how do you find out what the URL is for a Subversion tag?Either way, the answer is that this is just a mirror of what's in the Git repo. So if you make a tag called "blah-blah-blah" using Git and push it, then there will automatically be a path available to Subversion clients (but not web browers) at:https://github.com/CESM-Development/cime/tags/blah-blah-blahThis is not really documented on GitHub's site itself, although I think it was not to hard to figure out where this directory was by using Google or "svn ls". Note that support for tags seems to have been one of the last things added by GitHub, and it doesn't get anything more than a half sentence in an update at the very end of this blog post:https://github.com/blog/966-improved-subversion-client-supportIt's pretty much analogous to how branches are described on that post, though.
 

goldy

AMP / CGD / NCAR
Staff member
It's pretty much magic. github has created these links but I've never found any documentation. The closest is: https://help.github.com/articles/getting-permanent-links-to-files/
 

tcraig

Member
Thanks, that clarifies it for me.  I could see the tags and branches and all that stuff on the github site but not how to create the actual https url.  The answer, as I understand it, is that it's not well documented.  You can use "svn ls" to check the github repo or you just have to know that a tag in github is translated to a particular url for svn.  thanks.
 

santos

Member
Just FYI, I noticed that some things in the Google document were not quite right, including the part stating how to get the tag URLs. I've updated the doc with some additions/corrections from conversations today.
 

andre

New Member
I played with this a bit while the testdb was being updated. My guess is that they implemnted their own server that responds to the svn protocal. It appears that they are following the standard svn naming conventions of repo/trunkrepo/branches/some_branch_namerepo/tags/some_tag_nameSo it is possible to predict and construct an arbitrary url on the fly if needed. Relying on this behavior is probably not ideal in the long run.
 
Top