comparison buttercup/source.py @ 35:052ee8a2ebde

typo
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 12 Jun 2011 19:01:38 -0700
parents 7a11a25da2e8
children 4ea66cb5485d
comparison
equal deleted inserted replaced
34:7a11a25da2e8 35:052ee8a2ebde
34 """mercurial source""" 34 """mercurial source"""
35 35
36 def update(self): 36 def update(self):
37 """updates a checkout or does one if it does not exist""" 37 """updates a checkout or does one if it does not exist"""
38 if os.path.exists(self.directory()): 38 if os.path.exists(self.directory()):
39 hgdir = os.path.join(self.directory(), '.hg')) 39 hgdir = os.path.join(self.directory(), '.hg')
40 assert os.path.exists(hgdir), "Not an hg directory: %s" % hgdir 40 assert os.path.exists(hgdir), "Not an hg directory: %s" % hgdir
41 call(['hg', 'pull'], cwd=self.directory()) 41 call(['hg', 'pull'], cwd=self.directory())
42 call(['hg', 'update'], cwd=self.directory()) 42 call(['hg', 'update'], cwd=self.directory())
43 else: 43 else:
44 if not os.path.exists(self.srcdir): 44 if not os.path.exists(self.srcdir):