changeset 35:052ee8a2ebde

typo
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 12 Jun 2011 19:01:38 -0700
parents 7a11a25da2e8
children 2aa78e65d882
files buttercup/source.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/buttercup/source.py
+++ b/buttercup/source.py
@@ -31,17 +31,17 @@ class Source(object):
         
 
 class HgSource(Source):
     """mercurial source"""
 
     def update(self):
         """updates a checkout or does one if it does not exist"""
         if os.path.exists(self.directory()):
-            hgdir = os.path.join(self.directory(), '.hg'))
+            hgdir = os.path.join(self.directory(), '.hg')
             assert os.path.exists(hgdir), "Not an hg directory: %s" % hgdir
             call(['hg', 'pull'], cwd=self.directory())
             call(['hg', 'update'], cwd=self.directory())
         else:
             if not os.path.exists(self.srcdir):
                 os.makedirs(self.srcdir)
             call(['hg', 'clone', self.uri], cwd=self.srcdir)
             # TODO: add a more intelligent .hg/hgrc