English Documentation - Documentación en Español


What is django-hgwebproxy?

django-hgwebproxy is a proxy built overtop of mercurial's hgweb which allows authentication using Django's auth application. Read/Pull and Write/Push permissions can be added on a per-repository basis using Django's admin interface.



The application can be installed installed using easy_install or pip:

$ sudo easy_install django-hgwebproxy
$ pip install django-hgwebproxy

or you get the source tarball on:

or much Better clone my repo

$ hg clone https://mariocesar@bitbucket.org/mariocesar/django-hgwebproxy/


Hwebproxy overview screenshot Hwebproxy overview screenshot

More: http:www.flickr.com/photos/mariocesar/sets/72157621783087769/


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
  1. Go to
  2. 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.
  3. Explore the mercurial repositorie going to{your-reponame}
  4. 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 authorization required
realm: Basic Auth
user: admin
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
pushing to
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.

Sites and Proyects using Django-Hgwebproxy


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.