Mercurial > hg > fetch
comparison fetch.py @ 20:738d84b4de52
start documenting
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 09 Nov 2011 19:55:15 -0800 |
| parents | d69041957c0e |
| children | 0706968f01bb |
comparison
equal
deleted
inserted
replaced
| 19:d69041957c0e | 20:738d84b4de52 |
|---|---|
| 122 | 122 |
| 123 class GitFetcher(Fetcher): | 123 class GitFetcher(Fetcher): |
| 124 """checkout a git repository""" | 124 """checkout a git repository""" |
| 125 type = 'git' | 125 type = 'git' |
| 126 | 126 |
| 127 fetchers | 127 def __init__(self, url, export=True): |
| 128 VCSFetcher.__init__(self, url, export=True) | |
| 129 self.hg = which('git') | |
| 130 | |
| 131 fetchers.append(GitFetcher) | |
| 128 | 132 |
| 129 __all__ += [i.__name__ for i in fetchers] | 133 __all__ += [i.__name__ for i in fetchers] |
| 130 | 134 |
| 131 class Fetch(object): | 135 class Fetch(object): |
| 132 | 136 |
