Skip to content

Commit

Permalink
changed hg repository to return empty list rather than None for get_r…
Browse files Browse the repository at this point in the history
…ecent_commits if there are no recent commits

Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
  • Loading branch information
joshourisman authored and alex committed Aug 20, 2009
1 parent 0297a0b commit 9399feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvcs/backends/hg.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_recent_commits(self, since=None):
else:
break

return [self._ctx_to_commit(ctx) for ctx in changesets] or None
return [self._ctx_to_commit(ctx) for ctx in changesets]

def list_directory(self, path, revision=None):
"""
Expand Down

0 comments on commit 9399feb

Please sign in to comment.