~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to version_info_formats/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-20 14:06:40 UTC
  • mto: (2022.1.1 version-info-55794)
  • mto: This revision was merged to the branch mainline in revision 2028.
  • Revision ID: john@arbash-meinel.com-20060920140640-8dca2f0fdb7564c3
whitespace and formatting cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
def create_date_str(timestamp=None, offset=None):
29
29
    """Just a wrapper around format_date to provide the right format.
30
 
    
 
30
 
31
31
    We don't want to use '%a' in the time string, because it is locale
32
32
    dependant. We also want to force timezone original, and show_offset
33
33
 
42
42
 
43
43
 
44
44
class VersionInfoBuilder(object):
45
 
    """A class which lets you build up information about a revision.""" 
 
45
    """A class which lets you build up information about a revision."""
46
46
 
47
47
    def __init__(self, branch, working_tree=None,
48
48
                check_for_clean=False,
172
172
 
173
173
    :param format: The short name of the format, this will be used as the
174
174
        lookup key.
175
 
    :param module: The string name to the module where the format class 
 
175
    :param module: The string name to the module where the format class
176
176
        can be found
177
177
    :param class_name: The string name of the class to instantiate
178
178
    """
201
201
    return formats
202
202
 
203
203
 
204
 
register_builder('rio', 'bzrlib.plugins.version_info.version_info_formats.format_rio',
205
 
                 'RioVersionInfoBuilder')
206
 
register_builder('python', 'bzrlib.plugins.version_info.version_info_formats.format_python',
207
 
                 'PythonVersionInfoBuilder')
 
204
register_builder('rio',
 
205
             'bzrlib.plugins.version_info.version_info_formats.format_rio',
 
206
             'RioVersionInfoBuilder')
 
207
register_builder('python',
 
208
             'bzrlib.plugins.version_info.version_info_formats.format_python',
 
209
             'PythonVersionInfoBuilder')