Arbit - project tracking

VCS wrapper

#1: blame fails if file is empty

Issue revisions

  • new by Arvid Bergelmir at 2010-A-05 20:01
  • new by Arvid Bergelmir at 2010-A-05 20:01
  • new by Arvid Bergelmir at 2010-A-05 20:01
  • closed by Kore Nordmann at 2010-A-31 7:50
Type bug bug
State closed closed
Priority medium medium
Resolution fixed fixed
Assigned to Nobody
Scheduled for
Affected versions 0.1-alpha
Affected components Wrapper / GIT-Cli
Last change Tuesday 31 August 2010 07:50:56 UTC by Kore Nordmann
Short description
-----------------

Blame fails if file is empty.

Environment
-----------

Ubuntu 10.04
PHPUnit 3.4.11
PHP 5.3.2

Steps to reproduce
------------------

Add empty file to repository.

Expected behavior
-----------------

blame() should return bool(false) like documented in vcsBlameable::blame()'s phpdoc.

 /**
  * ...
  * 
  * If some file in the repository has no blame information associated, like
  * binary files, the method should return false.
  * 
  * ...
  */


Actual behavior
---------------

vcsRuntimeException: Runtime exception: Could not parse line:
  • Kore Nordmann at Tuesday 31 August 2010 07:50:56 UTC

    Fixed in revision #1864.

    Thanks for your bug report.