# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():


import os
import os.path
from oroboros.core import cfg
def pull(src=None, dest=None, user=None, pswd=None):
	"""Pull changes from distant repo.
	
	:type src: str or None
	:type dest: str or None
	:type user: str or None
	:type pswd: str or None
	"""
	if src == None:
		src = cfg.hg_repo
	if dest == None:
		dest = os.path.abspath(os.path.expanduser(cfg.charts_dir))
	if user == None:
		user = cfg.hg_user if cfg.hg_user != '' else None
		pswd = cfg.hg_pswd if cfg.hg_pswd != '' else None
	src = make_dest_url(src, user, pswd)
	os.system('hg pull -u -R %s %s' % (dest, src))


def push(src=None, dest=None, user=None, pswd=None):
	"""Push changes to distant repo.
	
	:type src: str or None
	:type dest: str or None
	:type user: str or None
	:type pswd: str or None
	"""
	if src == None:
		src = os.path.abspath(os.path.expanduser(cfg.charts_dir))
	if dest == None:

# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():


# Path: oroboros/core/hgrepo.py
import os
import os.path
from oroboros.core import cfg

def pull(src=None, dest=None, user=None, pswd=None):
	"""Pull changes from distant repo.
	
	:type src: str or None
	:type dest: str or None
	:type user: str or None
	:type pswd: str or None
	"""
	if src == None:
		src = cfg.hg_repo
	if dest == None:
		dest = os.path.abspath(os.path.expanduser(cfg.charts_dir))
	if user == None:
		user = cfg.hg_user if cfg.hg_user != '' else None
		pswd = cfg.hg_pswd if cfg.hg_pswd != '' else None
	src = make_dest_url(src, user, pswd)
	os.system('hg pull -u -R %s %s' % (dest, src))


def push(src=None, dest=None, user=None, pswd=None):
	"""Push changes to distant repo.
	
	:type src: str or None
	:type dest: str or None
	:type user: str or None
	:type pswd: str or None
	"""
	if src == None:
		src = os.path.abspath(os.path.expanduser(cfg.charts_dir))
	if dest == None:

		dest = cfg.hg_repo