コード例 #1
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     self._null_eq_empty = 0
     self._dump_mismatched_tables = 0
     self._simple_table_compare = 0
     self.register_option('--null-eq-empty',
                          self._null_eq_empty_handler,
                          "Compare NULL and '' as equal.  This is to"
                          " compensate for inconsistencies in the"
                          " configuration tool when saving values.",
                          ['-n'])
     self.register_option('--boolean-as-numeric',
                          self._boolean_as_numeric_handler,
                          "Compare true as 1 and false as 0.",
                          ['-b'])
     self.register_option('--dump-mismatched-tables',
                          self._dump_mismatched_tables_handler,
                          "Also dump the differences for rows in tables"
                          " that only exist in one of the databases, or"
                          " that have different definitions.  Typically"
                          " these rows are not included in the diff since"
                          " every row in such tables will be different"
                          " (and therefore implicit and quite noisy).",
                          ['-m'])
     self.register_option('--simple-table-compare',
                          self._simple_table_compare__handler,
                          "Disable NodeDef specific analysis of the"
                          " tables.",
                          ['-s'])
     return
コード例 #2
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self.register_option(
         '--and', self._and_handler, "property value\t"
         "Add another property, value pair to the set"
         " list", ['-a'])
     self._property_value_list = []
     return
コード例 #3
0
ファイル: pfileinfo.py プロジェクト: mcruse/monotone
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self.register_option('--and', self._and_handler,
                          "property value\t"
                          "Add another property, value pair to the set"
                          " list",
                          ['-a'])
     self._property_value_list = []
     return
コード例 #4
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self._unknown_type_text = 'Unknown'
     self._value_only = 0
     self.register_option(
         '--unknown-type-text', self._unknown_type_text_handler, "text\t"
         "Text to display if the type is not obvious.", ['-n'])
     self.register_option('--value-only', self._value_only_handler,
                          "Only onput the value a the property.", ['-n'])
     return
コード例 #5
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self._no_property_text = 'None'
     self._value_only = 0
     self._all_properties = 0
     self.register_option('--all-properties', self._all_properties_handler,
                          "List all properties in the file(s).", ['-a'])
     self.register_option(
         '--no-property-text', self._no_property_text_handler, "text\t"
         "Text to display if there is no property.", ['-n'])
     self.register_option('--value-only', self._value_only_handler,
                          "Only onput the value a the property.", ['-V'])
     return
コード例 #6
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     self._definitions_only = 0
     self._unique_only = 0
     self.register_option('--definitions-only',
                          self._definitions_only_handler,
                          "Only output the table definitions, not the"
                          " row data",
                          ['-d'])
     self.register_option('--unique',
                          self._unique_only_handler,
                          "Only output unique rows.",
                          ['-u'])
     return
コード例 #7
0
ファイル: pfileinfo.py プロジェクト: mcruse/monotone
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self._unknown_type_text = 'Unknown'
     self._value_only = 0
     self.register_option('--unknown-type-text',
                          self._unknown_type_text_handler,
                          "text\t"
                          "Text to display if the type is not obvious.",
                          ['-n'])
     self.register_option('--value-only',
                          self._value_only_handler,
                          "Only onput the value a the property.",
                          ['-n'])
     return
コード例 #8
0
ファイル: pfileinfo.py プロジェクト: mcruse/monotone
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     self._no_property_text = 'None'
     self._value_only = 0
     self._all_properties = 0
     self.register_option('--all-properties',
                          self._all_properties_handler,
                          "List all properties in the file(s).",
                          ['-a'])
     self.register_option('--no-property-text',
                          self._no_property_text_handler,
                          "text\t"
                          "Text to display if there is no property.",
                          ['-n'])
     self.register_option('--value-only',
                          self._value_only_handler,
                          "Only onput the value a the property.",
                          ['-V'])
     return
コード例 #9
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     return
コード例 #10
0
ファイル: pfileinfo.py プロジェクト: mcruse/monotone
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     _FileInfoMixin.__init__(self)
     return
コード例 #11
0
 def __init__(self, *args):
     SubCommand.__init__(self, *args)
     return