mariocesar / django-hgwebproxy (http://bitbucket.org/mariocesar/django-hgwebproxy/wiki/Home)
fork of hg-post10
Manage mercurial repositories in Django.
Clone this repository (size: 467.6 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/mariocesar/django-hgwebproxy/
Welcome
Instal the app directly from your linux console:
$ sudo easy_install django-hgwebproxy
or get the source tarball on:
- PyPy http://pypi.python.org/pypi/django-hgwebproxy/
- and Bitbucket http://bitbucket.org/mariocesar/django-hgwebproxy/downloads/
or much Better clone my repo
$ hg clone https://mariocesar@bitbucket.org/mariocesar/django-hgwebproxy/
Screenshots

More: http:www.flickr.com/photos/mariocesar/sets/72157621783087769/
Usage
You can start testing hgwebproxy from the example project in the source code.
$ hg clone http://bitbucket.org/mariocesar/django-hgwebproxy/ $ cd django-hgwebproxy/example $ python manage.py syncdb $ python manage.py runserver
- Go to http://127.0.0.1:8000/admin/
- Add a new mercurial repositories, providing a name and a path to an existing repositories. You can use '..', to manage your copy of hgwebproxy it self.
- Explore the mercurial repositorie going to http://127.0.0.1:8000/admin/repos/{your-reponame}
- Have fun!
On the command line you can pull and push code to the repositories, for example if you manage a repo named 'test'
$ hg clone http://127.0.0.1:8000/admin/repo/test/ http authorization required realm: Basic Auth user: admin password: destination directory: ulriksen requesting all changes adding changesets adding manifests adding file changes added 13 changesets with 82 changes to 75 files updating working directory 75 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd test
Now made some changes and commit a new revision, after that push
$ hg push http authorization required realm: Basic Auth user: admin password: pushing to http://127.0.0.1:8000/admin/repo/ulriksen/ searching for changes added 1 changesets with 1 changes to 1 files
Notice that the user 'admin' is superuser, you can create users and asign permissions for managing the repositories. Permissions for hgwebproxy are:
- Can pull: the user can clone and explore the repositorie, but can't push revisions
- Can push: the user can clone, explore and push code to the repositorie
You can add this permissions on the change form of the Auth app of django for Users.
This revision is from 2009-08-07 11:05
