Mercurial > treepkg > treepkg
comparison treepkg/git.py @ 447:1d16e4844f98
Cleanup misplaced whitespace
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 09 Aug 2010 14:00:00 +0000 |
parents | bee2e5f6cf8d |
children | fd52f1e231ba |
comparison
equal
deleted
inserted
replaced
446:bee2e5f6cf8d | 447:1d16e4844f98 |
---|---|
21 | 21 |
22 """Base class for Git specific errors raised by TreePKG""" | 22 """Base class for Git specific errors raised by TreePKG""" |
23 | 23 |
24 def checkout(url, localdir, branch=None): | 24 def checkout(url, localdir, branch=None): |
25 """Clones the repository at url into the localdir""" | 25 """Clones the repository at url into the localdir""" |
26 run.call(cmdexpand("git clone $url $localdir", **locals())) | 26 run.call(cmdexpand("git clone $url $localdir", **locals())) |
27 if branch: | 27 if branch: |
28 run.call(cmdexpand("git checkout --track -b local $branch", | 28 run.call(cmdexpand("git checkout --track -b local $branch", |
29 **locals()), cwd=localdir) | 29 **locals()), cwd=localdir) |
30 else: | 30 else: |
31 run.call(cmdexpand("git checkout --track -b local master"), | 31 run.call(cmdexpand("git checkout --track -b local master"), |
32 cwd=localdir) | 32 cwd=localdir) |
33 | 33 |
77 def last_changed_revision(self, localdir): | 77 def last_changed_revision(self, localdir): |
78 """Returns the last changed revision of the working copy in localdir""" | 78 """Returns the last changed revision of the working copy in localdir""" |
79 return last_changed_revision(localdir) | 79 return last_changed_revision(localdir) |
80 | 80 |
81 def check_working_copy(self, localdir): | 81 def check_working_copy(self, localdir): |
82 """ | 82 """FIXME STUB: Not implemented for git""" |
83 FIXME STUB: Not implemented for git | 83 return None |
84 """ | |
85 return None | |
86 | 84 |
87 class GitWorkingCopy(object): | 85 class GitWorkingCopy(object): |
88 | 86 |
89 """Represents a checkout of a git repository""" | 87 """Represents a checkout of a git repository""" |
90 | 88 |