Commits

Mark Gemmill committed 382e10c

cleaned up spacing in scm module to conform to pep8

Comments (0)

Files changed (1)

 from .repositories import get_repository
 from ConfigParser import SafeConfigParser as ConfigParser
 
+
 def detect_scm(path='.'):
     git_path = os.path.join(path, '.git')
     hg_path = os.path.join(path, '.hg')
         return 'hg'
     return ''
 
+
 def gen_url(scm, protocol, username, reponame):
     templates = {
         'git': {
     except KeyError as ex:
         raise Exception('Key error while generating url. Unknown argument `%s`' % ex)
 
+
 def clone(protocol, ownername, reponame, username, password):
     repo = get_repository(ownername, reponame, username, password)
     scm = repo['scm']
     url = gen_url(scm, protocol, ownername, reponame)
     os.system('%s clone %s' % (scm, url))
 
+
 def pull(protocol, username, reponame):
     scm = detect_scm()
     url = gen_url(scm, protocol, username, reponame)
     elif scm == 'hg':
         os.system('hg pull %s' % url)
 
+
 def push(protocol, username, reponame):
     scm = detect_scm()
     url = gen_url(scm, protocol, username, reponame)
     elif scm == 'hg':
         os.system('hg push %s' % url)
 
+
 def push_upstream(remotename='origin'):
     scm = detect_scm()
 
         os.system('git push --set-upstream %s master' % remotename)
     elif scm == 'hg':
         os.system('hg push')
-    
+
+
 def add_remote(protocol, username, reponame, remotename='origin'):
     scm = detect_scm()
     url = gen_url(scm, protocol, username, reponame)