/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/stats/classify.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
"""Classify a commit based on the types of files it changed."""
17
17
 
 
18
from __future__ import absolute_import
 
19
 
18
20
import os.path
19
21
 
20
22
from ... import urlutils
63
65
    # number of lines changed in a file.
64
66
    types = []
65
67
    for d in delta.added + delta.modified:
66
 
        types.append(classify_filename(d.path[1] or d.path[0]))
 
68
        types.append(classify_filename(d[0]))
67
69
    return types