Opened 5 years ago

Last modified 4 years ago

#3887 new defect

gunittest requires svn to git changes

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Tests Version: svn-trunk
Keywords: python Cc:
CPU: Unspecified Platform: Unspecified

Description

At time a lot of SVN references are still there:

lib/python/gunittest/loader.py:45:    :param skip_dirs: directories not to recurse to (e.g. ``.svn``)
lib/python/gunittest/loader.py:146:    skip_dirs = ['.svn', 'dist.*', 'bin.*', 'OBJ.*']
lib/python/gunittest/invoker.py:23:                        get_svn_path_authors,
lib/python/gunittest/invoker.py:52:    test_file_authors = get_svn_path_authors(module.abs_file_path)
lib/python/gunittest/invoker.py:53:    # in case that SVN is not available use empty authors
lib/python/gunittest/invoker.py:139:                            ignore=shutil.ignore_patterns('*.svn*'))
lib/python/gunittest/reporters.py:110:    :param revision: SVN revision (should be a number)
lib/python/gunittest/reporters.py:160:def get_svn_revision():
lib/python/gunittest/reporters.py:161:    """Get SVN revision number
lib/python/gunittest/reporters.py:163:    :returns: SVN revision number as string or None if it is
lib/python/gunittest/reporters.py:168:    p = subprocess.Popen(['svnversion', '.'],
lib/python/gunittest/reporters.py:184:def get_svn_info():
lib/python/gunittest/reporters.py:185:    """Get important information from ``svn info``
lib/python/gunittest/reporters.py:187:    :returns: SVN info as dictionary or None
lib/python/gunittest/reporters.py:192:        p = subprocess.Popen(['svn', 'info', '.', '--xml'],
lib/python/gunittest/reporters.py:209:                # relative path has ^ at the beginning in SVN version 1.8.8
lib/python/gunittest/reporters.py:213:                # SVN version 1.8.8 supports relative-url but older do not
lib/python/gunittest/reporters.py:215:                const_url_part = 'https://svn.osgeo.org/grass/'
lib/python/gunittest/reporters.py:219:    # TODO: add this to svnversion function
lib/python/gunittest/reporters.py:233:# TODO: these functions should be called only if we know that svn is installed
lib/python/gunittest/reporters.py:235:def get_svn_path_authors(path, from_date=None):
lib/python/gunittest/reporters.py:241:        # this is the SVN default for local copies
lib/python/gunittest/reporters.py:247:        p = subprocess.Popen(['svn', 'log', '--xml',
lib/python/gunittest/reporters.py:268:    # SVN gives us authors of code together with authors of tests
lib/python/gunittest/reporters.py:272:    no_svn_text = ('<span style="font-size: 60%">'
lib/python/gunittest/reporters.py:277:        return '<h3>Code and test authors</h3>' + no_svn_text
lib/python/gunittest/reporters.py:279:    tested_dir_authors = get_svn_path_authors(directory, from_date)
lib/python/gunittest/reporters.py:283:        no_svn_text = ('<span style="font-size: 60%">'
lib/python/gunittest/reporters.py:284:                       'Authors cannot be obtained using SVN.'
lib/python/gunittest/reporters.py:286:        not_testing_authors = tested_dir_authors = [no_svn_text]
lib/python/gunittest/reporters.py:545:        svn_info = get_svn_info()
lib/python/gunittest/reporters.py:546:        if not svn_info:
lib/python/gunittest/reporters.py:547:            svn_text = ('<span style="font-size: 60%">'
lib/python/gunittest/reporters.py:548:                        'SVN revision cannot be obtained'
lib/python/gunittest/reporters.py:551:            url = get_source_url(path=svn_info['relative-url'],
lib/python/gunittest/reporters.py:552:                                 revision=svn_info['revision'])
lib/python/gunittest/reporters.py:553:            svn_text = ('SVN revision'
lib/python/gunittest/reporters.py:556:                        ).format(url=url, rev=svn_info['revision'])
lib/python/gunittest/reporters.py:560:                              ' ({svn})'
lib/python/gunittest/reporters.py:570:                                  svn=svn_text))
lib/python/gunittest/reporters.py:803:        svn_info = get_svn_info()
lib/python/gunittest/reporters.py:804:        if not svn_info:
lib/python/gunittest/reporters.py:805:            svn_revision = ''
lib/python/gunittest/reporters.py:807:            svn_revision = svn_info['revision']
lib/python/gunittest/reporters.py:837:        summary['svn_revision'] = svn_revision
lib/python/gunittest/multireport.py:36:        self.svn_revision = None
lib/python/gunittest/multireport.py:291:            '<th>Date (timestamp)</th><th>SVN revision</th><th>Name</th>'
lib/python/gunittest/multireport.py:318:                '<td>{result.svn_revision}</td>'
lib/python/gunittest/multireport.py:382:            result.svn_revision = str(summary['svn_revision'])
lib/python/gunittest/multireport.py:438:        # x = [result.svn_revision for result in results]
lib/python/gunittest/multireport.py:439:        xlabels = [result.timestamp.strftime("%Y-%m-%d") + ' (r' + result.svn_revision + ')' for result in results]
lib/python/gunittest/case.py:1010:        # but unified is a good choice if you are used to svn or git
lib/python/script/core.py:1642:         'version': '7.0.svn', 'date': '2012', 'gdal': '2.0dev',

Change History (4)

comment:1 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:2 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:3 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:4 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.