Permalink
Browse files

Fix for issue #17

  • Loading branch information...
1 parent 0867fa4 commit 57a45e44c220fa699dbc0b9fd5d517a92595aacc Aleksandr Gornostal committed Aug 18, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Modific.py
View
@@ -234,7 +234,12 @@ def git_diff_command(self, file_name):
return [self.get_user_command('git') or 'git', 'diff', '--no-color', '--', file_name]
def svn_diff_command(self, file_name):
- return [self.get_user_command('svn') or 'svn', 'diff', '--internal-diff', file_name]
+ params = [self.get_user_command('svn') or 'svn', 'diff', '--internal-diff']
+ if file_name.startswith('@'):
+ file_name += '@'
+ params.extend(['--revision', 'HEAD'])
+ params.extend([file_name])
+ return params
def bzr_diff_command(self, file_name):
return [self.get_user_command('bzr') or 'bzr', 'diff', file_name]

0 comments on commit 57a45e4

Please sign in to comment.