Skip to content

Commit

Permalink
Added travis and resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmakkar08 committed Sep 10, 2016
1 parent e2face7 commit 8c2c4e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/.DS_Store
/build/
*.pyc
venv*
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: python
python:
- "2.7"
install: pip install -r resources/requirements.txt
script: nosetests
9 changes: 4 additions & 5 deletions svn/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,10 @@ def diff(self, old, new, rel_path=None):
['--old', '{0}@{1}'.format(full_url_or_path, old),
'--new', '{0}@{1}'.format(full_url_or_path, new)],
combine=True)
file_to_diff = \
{
i.split('==')[0].strip().strip('/'): i.split('==')[-1].strip('=').strip()
for i in filter(None, diff_result.split('Index: '))
}
file_to_diff = {}
for non_empty_diff in filter(None, diff_result.split('Index: ')):
split_diff = non_empty_diff.split('==')
file_to_diff[split_diff[0].strip().strip('/')] = split_diff[-1].strip('=').strip()
diff_summaries = self.diff_summary(old, new, rel_path)
for diff_summary in diff_summaries:
diff_summary['diff'] = \
Expand Down

0 comments on commit 8c2c4e9

Please sign in to comment.