| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,7 +171,7 @@ def list_from_string(cls, repo, text): | |||
| 171 | 171 | return commits | |
| 172 | 172 | ||
| 173 | 173 | @classmethod | |
| 174 | - def diff(cls, repo, a, b = None, paths = None): | ||
| 174 | + def diff(cls, repo, a, b=None, paths=None): | ||
| 175 | 175 | """ | |
| 176 | 176 | Show diffs between two trees: | |
| 177 | 177 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,7 +100,7 @@ def tags(self): | |||
| 100 | 100 | """ | |
| 101 | 101 | return Tag.find_all(self) | |
| 102 | 102 | ||
| 103 | - def commits(self, start = 'master', path = '', max_count = 10, skip = 0): | ||
| 103 | + def commits(self, start='master', path='', max_count=10, skip=0): | ||
| 104 | 104 | """ | |
| 105 | 105 | A list of Commit objects representing the history of a given ref/commit | |
| 106 | 106 | ||
@@ -143,7 +143,7 @@ def commits_between(self, frm, to, path = ''): | |||
| 143 | 143 | """ | |
| 144 | 144 | return Commit.find_all(self, "%s..%s" % (frm, to), path).reverse() | |
| 145 | 145 | ||
| 146 | - def commits_since(self, start = 'master', path = '', since = '1970-01-01'): | ||
| 146 | + def commits_since(self, start='master', path='', since='1970-01-01'): | ||
| 147 | 147 | """ | |
| 148 | 148 | The Commits objects that are newer than the specified date. | |
| 149 | 149 | Commits are returned in chronological order. | |
@@ -164,7 +164,7 @@ def commits_since(self, start = 'master', path = '', since = '1970-01-01'): | |||
| 164 | 164 | ||
| 165 | 165 | return Commit.find_all(self, start, path, **options) | |
| 166 | 166 | ||
| 167 | - def commit_count(self, start = 'master', path = ''): | ||
| 167 | + def commit_count(self, start='master', path=''): | ||
| 168 | 168 | """ | |
| 169 | 169 | The number of commits reachable by the given branch/commit | |
| 170 | 170 | ||
@@ -200,7 +200,7 @@ def commit(self, id, path = ''): | |||
| 200 | 200 | raise ValueError, 'Invalid identifier %s' % id | |
| 201 | 201 | return commits[0] | |
| 202 | 202 | ||
| 203 | - def commit_deltas_from(self, other_repo, ref = 'master', other_ref = 'master'): | ||
| 203 | + def commit_deltas_from(self, other_repo, ref='master', other_ref='master'): | ||
| 204 | 204 | """ | |
| 205 | 205 | Returns a list of commits that is in ``other_repo`` but not in self | |
| 206 | 206 | ||
@@ -213,7 +213,7 @@ def commit_deltas_from(self, other_repo, ref = 'master', other_ref = 'master'): | |||
| 213 | 213 | diff_refs = list(set(other_repo_refs) - set(repo_refs)) | |
| 214 | 214 | return map(lambda ref: Commit.find_all(other_repo, ref, max_count=1)[0], diff_refs) | |
| 215 | 215 | ||
| 216 | - def tree(self, treeish = 'master'): | ||
| 216 | + def tree(self, treeish='master'): | ||
| 217 | 217 | """ | |
| 218 | 218 | The Tree object for the given treeish reference | |
| 219 | 219 | ||
@@ -242,7 +242,7 @@ def blob(self, id): | |||
| 242 | 242 | """ | |
| 243 | 243 | return Blob(self, id=id) | |
| 244 | 244 | ||
| 245 | - def log(self, commit = 'master', path = None, **kwargs): | ||
| 245 | + def log(self, commit='master', path=None, **kwargs): | ||
| 246 | 246 | """ | |
| 247 | 247 | The commit log for a treeish | |
| 248 | 248 | ||
@@ -330,7 +330,7 @@ def fork_bare(self, path, **kwargs): | |||
| 330 | 330 | self.git.clone(self.path, path, **options) | |
| 331 | 331 | return Repo(path) | |
| 332 | 332 | ||
| 333 | - def archive_tar(self, treeish = 'master', prefix = None): | ||
| 333 | + def archive_tar(self, treeish='master', prefix=None): | ||
| 334 | 334 | """ | |
| 335 | 335 | Archive the given treeish | |
| 336 | 336 | ||
@@ -359,7 +359,7 @@ def archive_tar(self, treeish = 'master', prefix = None): | |||
| 359 | 359 | options['prefix'] = prefix | |
| 360 | 360 | return self.git.archive(treeish, **options) | |
| 361 | 361 | ||
| 362 | - def archive_tar_gz(self, treeish = 'master', prefix = None): | ||
| 362 | + def archive_tar_gz(self, treeish='master', prefix=None): | ||
| 363 | 363 | """ | |
| 364 | 364 | Archive and gzip the given treeish | |
| 365 | 365 | ||
@@ -470,7 +470,7 @@ def is_dirty(self): | |||
| 470 | 470 | def active_branch(self): | |
| 471 | 471 | """ | |
| 472 | 472 | The name of the currently active branch. | |
| 473 | - | ||
| 473 | + | ||
| 474 | 474 | Returns | |
| 475 | 475 | str (the branch name) | |
| 476 | 476 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments