Skip to content

Commit

Permalink
make it more readable, 80 char linse
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jul 4, 2009
1 parent ddcac04 commit 45c1a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyvcs/backends/git.py
Expand Up @@ -100,7 +100,8 @@ def get_recent_commits(self, since=None):
history[commit.id] = commit
pending_commits.extend(commit.parents)
commits = filter(lambda o: datetime.fromtimestamp(o.commit_time) >= since, history.values())
return sorted(map(lambda o: self.get_commit_by_id(o.id), commits), key=attrgetter('time'), reverse=True)
commits = map(lambda o: self.get_commit_by_id(o.id), commits)
return sorted(commits, key=attrgetter('time'), reverse=True)

def list_directory(self, path, revision=None):
commit = self._get_commit(revision or self._repo.head())
Expand Down

0 comments on commit 45c1a57

Please sign in to comment.