Mercurial > treepkg > treepkg
comparison treepkg/git.py @ 552:e68c07fd849a
fix: don't call update function anymore
user repository method instead
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Tue, 08 Mar 2011 14:21:55 +0000 |
parents | f841b369aa80 |
children | 9824e409388b |
comparison
equal
deleted
inserted
replaced
551:d2b294e4ede7 | 552:e68c07fd849a |
---|---|
106 if os.path.exists(gitdir): | 106 if os.path.exists(gitdir): |
107 self.log_info("Updating the working copy in %r for repo " \ | 107 self.log_info("Updating the working copy in %r for repo " \ |
108 "%s and branch %s", self.localdir, | 108 "%s and branch %s", self.localdir, |
109 self.repository.url, | 109 self.repository.url, |
110 branch) | 110 branch) |
111 update(self.localdir, self.repository.branch) | 111 self.repository.update(self.localdir, self.repository.branch) |
112 else: | 112 else: |
113 # TODO: better check if localdir contains files | 113 # TODO: better check if localdir contains files |
114 if os.path.exists(self.localdir): | 114 if os.path.exists(self.localdir): |
115 raise GitError("Working copy dir %s already exists. " \ | 115 raise GitError("Working copy dir %s already exists. " \ |
116 " files. Can't checkout from %s" % (self.localdir, | 116 " files. Can't checkout from %s" % (self.localdir, |