Skip to content

Commit

Permalink
kill trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jul 12, 2009
1 parent 8aef78e commit 8e38031
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyvcs/backends/subversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ def _log_to_commit(self, log):
# which is the previous revision in the same path.
diff_rev_end = pysvn.Revision(pysvn.opt_revision_kind.number, log['revision'].number - 6)
diff_rev_start = pysvn.Revision(pysvn.opt_revision_kind.number, log['revision'].number - 1)

log_list = self._repo.log(self.path, revision_start=diff_rev_start,
revision_end=diff_rev_end, discover_changed_paths=True)

try:
oldrev_log = log_list.pop(0)
except IndexError:
# TODO: decide whatever to do if a suitable revision is not found within the
# last 5 revisions, we could probably check 10 or 15 before, but could be
# expensive.
raise CommitDoesNotExist

diff = self._repo.diff(NamedTemporaryFile().name, url_or_path=self.path,
revision1=oldrev_log['revision'],
revision2=log['revision'],
Expand All @@ -52,7 +52,7 @@ def get_commit_by_id(self, commit_id):

log_list = self._repo.log(self.path, revision_start=rev,
revision_end=rev, discover_changed_paths=True)

# If log list is empty most probably the commit does not
# exists for a given path or branch.
try:
Expand Down

0 comments on commit 8e38031

Please sign in to comment.