How do I incorporate git into my web2py workflow?

2,063 views
Skip to first unread message

Pystar

unread,
Sep 7, 2012, 6:24:42 PM9/7/12
to web...@googlegroups.com
I would like to know how coders here incorporate git or any other VCS into their coding workflow with web2py?
Thanks

Massimo Di Pierro

unread,
Sep 7, 2012, 6:46:13 PM9/7/12
to web...@googlegroups.com
One of the new features is that in admin you can use a git url to install a web2py directly from github. You can also push 
an app to github. All of this requires python-git.

We are working on adding better git/hg features.

Andrew W

unread,
Sep 8, 2012, 4:54:55 AM9/8/12
to web...@googlegroups.com
I've noticed that on Windows with tortoiseHG installed, that web2py doesn't recognise it as a Mercurial Installation.    I guess I have to install Mercurial separately, although I'm using it through TortoiseHG ?

Massimo Di Pierro

unread,
Sep 8, 2012, 9:58:20 AM9/8/12
to web...@googlegroups.com
yes.

Pystar

unread,
Sep 8, 2012, 2:23:45 PM9/8/12
to web...@googlegroups.com
I actually meant having a git repository on your local development machine not pushing to github or something similar. How do you use git and web2py? 

Andrew

unread,
Sep 9, 2012, 10:33:01 AM9/9/12
to web...@googlegroups.com
The current git support is relatively basic and only intended for pulling and pushing from remote repositories after you are comfortable that your local work is stable.

I haven't tried it but you can try doing a git init in your freshly created app and try the push functionality in the IDE, but again there's no log or revert interface.

pbreit

unread,
Sep 11, 2012, 4:36:26 AM9/11/12
to web...@googlegroups.com
I use Mercurial but should be basically the same.

First, "hg clone" web2py somewhere on your hardrive.

Then in /applications, create a new app (I usually copy "welcome").

Then "cd" into the new app directory and "git init".

Now your app will be version controlled.

I host some of my projects on Bitbucket (similar to Github but private projects are free). In that case, I might create the project on Bitbucket and then "hg clone" it to my hard drive.

I don't use any of the git/hg features built in to Web2py.

Shivakumar GN

unread,
Oct 2, 2012, 2:15:36 PM10/2/12
to web...@googlegroups.com
On Saturday, 8 September 2012 04:16:13 UTC+5:30, Massimo Di Pierro wrote:
One of the new features is that in admin you can use a git url to install a web2py directly from github. You can also push 
an app to github. All of this requires python-git.


Isn't that supposed to be gitpython?

Reply all
Reply to author
Forward
Message has been deleted
0 new messages