Skip to content

Commit

Permalink
Fix repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
tobami committed Dec 24, 2010
1 parent 7b50e5a commit 6b213b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions speedcenter/codespeed/mercurial.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import os, datetime
from subprocess import Popen, PIPE
from speedcenter import settings

path = os.getcwd() + '/repos/'
repodir = path + 'pypy/'

path = settings.BASEDIR + '/repos/'

def updaterepo(repo):
repodir = path + repo.split('/')[-1] + "/"
if os.path.exists(repodir):
cmd = "hg up"
p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, cwd=repodir)
Expand All @@ -24,6 +26,8 @@ def updaterepo(repo):
return [{'error': False}]

def getlogs(endrev, startrev):
repodir = path + endrev.project.repo_path.split('/')[-1] + "/"
print repodir
if not os.path.exists(repodir):
updaterepo(endrev.project.repo_path)

Expand Down

0 comments on commit 6b213b6

Please sign in to comment.