[SciPy-User] Central File Exchange for Scipy

Jason Grout jason-sage at creativetrax.com
Thu Apr 21 02:18:35 EDT 2011


On 4/20/11 1:11 PM, Andy Wilson wrote:
>
> Sorry for showing up late to the party...
>
>
> fwiw, I did some experimenting with flask+git. It is really rough but if
> you are interested you can find it here:
> https://github.com/wilsaj/gitsnippets
>
>
> I think using either git or hg for snippets is a good idea because it
> saves some trouble by giving you some nice things for free, namely:
> history of edits and the ability to rollback changes (in case of
> vandalism or errors). If you keep things linear and don't bother with
> forking or branching/merging then it isn't very different from writing
> to the filesystem, but revision history is automatically recorded. Repos
> are also self-contained and easy to manage.
>
> There are good reasons to NOT expose snippets via DVCS. In order for
> people to be able to push back a cloned repo, you have to have to deal
> with authorization and be ready to handle branches. That's a lot of
> complexity and there are already systems that are very good at hosting
> DVCS, so diminishing returns...

In playing with gist, it appears that it only shows the master branch in 
the web UI.  Any other branches are impossible to create using the web 
UI (only the master HEAD can be edited), and if they are pushed to the 
underlying git repository, they are ignored.

So that's one way of dealing with the branching problem with a DVCS.

Jason



More information about the SciPy-User mailing list