Source

freehg / repos / hooks.py

Full commit
1
2
3
4
5
6
from freehg.repos.models import Repo

def changegroup(ui, repo, hooktype, **args):
    dbrepo = Repo.objects.get_from_path(repo.path)
    dbrepo.update_disk_usage()
    dbrepo.save()