Source

repoman / repo

#!/usr/bin/env python

# Copyright 2009-2012 Edlund A/S
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
'''
Edlund repository manager
'''

import sys

from mercurial import demandimport
demandimport.enable()
import mercurial.util

import repoman.dispatch

for fp in (sys.stdin, sys.stdout, sys.stderr):
    mercurial.util.setbinary(fp)

repoman.dispatch.run(sys.argv[1:])