ScottDuckworth / python-anyvcs

A Python abstraction layer for multiple version control systems
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

AssertionError thrown for SvnRepo.changed() for copy commits #30

Closed OEP closed 10 years ago

OEP commented 10 years ago

Using changed() on a commit where a copy was performed seems to cause problems with SvnRepo. I seem to have a repo that was initialized like so:

svn mkdir branches trunk (commit)
svn copy ^/trunk ^/branches/one

The command that runs is:

['svnlook', 'changed', '.', '-r', '3', '--copy-info']

whose output is

'A + branches/one/\n    (from trunk/:r2)\n'

and the line that causes the regex to fail is:

'    (from trunk/:r2)'
OEP commented 10 years ago

Oh yeah, the traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/pkilgo/projects/django-buffet/buffet/../buffet/vcs/views.py" in repo_commit_detail
  151.   entry.changed = client.changed(rev)
File "/home/pkilgo/local/lib/python/anyvcs/svn.py" in changed
  474.         assert m
  1. assert m