Show More
@@ -2,7 +2,7 b'' | |||||
2 | Configuration parser module. |
|
2 | Configuration parser module. | |
3 | """ |
|
3 | """ | |
4 |
|
4 | |||
5 | import configparser |
|
5 | from configparser import ConfigParser | |
6 |
|
6 | |||
7 | from rhodecode.lib.dbmigrate.migrate.versioning.config import * |
|
7 | from rhodecode.lib.dbmigrate.migrate.versioning.config import * | |
8 | from rhodecode.lib.dbmigrate.migrate.versioning import pathed |
|
8 | from rhodecode.lib.dbmigrate.migrate.versioning import pathed |
@@ -97,7 +97,7 b' class ColDiff(object):' | |||||
97 | self.diff=True |
|
97 | self.diff=True | |
98 | return |
|
98 | return | |
99 |
|
99 | |||
100 |
def __ |
|
100 | def __nonzero__(self): | |
101 | return self.diff |
|
101 | return self.diff | |
102 |
|
102 | |||
103 | __bool__ = __nonzero__ |
|
103 | __bool__ = __nonzero__ | |
@@ -132,7 +132,7 b' class TableDiff(object):' | |||||
132 | 'columns_different', |
|
132 | 'columns_different', | |
133 | ) |
|
133 | ) | |
134 |
|
134 | |||
135 |
def __ |
|
135 | def __nonzero__(self): | |
136 | return bool( |
|
136 | return bool( | |
137 | self.columns_missing_from_A or |
|
137 | self.columns_missing_from_A or | |
138 | self.columns_missing_from_B or |
|
138 | self.columns_missing_from_B or |
@@ -64,6 +64,12 b' class VerNum(object):' | |||||
64 | def __int__(self): |
|
64 | def __int__(self): | |
65 | return int(self.value) |
|
65 | return int(self.value) | |
66 |
|
66 | |||
|
67 | def __index__(self): | |||
|
68 | return int(self.value) | |||
|
69 | ||||
|
70 | def __hash__(self): | |||
|
71 | return hash(self.value) | |||
|
72 | ||||
67 |
|
73 | |||
68 | class Collection(pathed.Pathed): |
|
74 | class Collection(pathed.Pathed): | |
69 | """A collection of versioning scripts in a repository""" |
|
75 | """A collection of versioning scripts in a repository""" |
General Comments 0
You need to be logged in to leave comments.
Login now