Mercurial > hgsubversion
comparison svnwrap/svn_swig_wrapper.py @ 181:e37f9d3fd5e7
remove decorators (compat with python2.3)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 13 Jan 2009 13:59:50 +0100 |
parents | 3f1e8a5ec9dd |
children | 77812f98e250 |
comparison
equal
deleted
inserted
replaced
180:3f1e8a5ec9dd | 181:e37f9d3fd5e7 |
---|---|
144 callbacks.auth_baton = self.auth_baton | 144 callbacks.auth_baton = self.auth_baton |
145 self.callbacks = callbacks | 145 self.callbacks = callbacks |
146 self.ra = ra.open2(self.svn_url.encode('utf-8'), callbacks, | 146 self.ra = ra.open2(self.svn_url.encode('utf-8'), callbacks, |
147 svn_config, self.pool) | 147 svn_config, self.pool) |
148 | 148 |
149 @property | |
150 def HEAD(self): | 149 def HEAD(self): |
151 return ra.get_latest_revnum(self.ra, self.pool) | 150 return ra.get_latest_revnum(self.ra, self.pool) |
152 | 151 HEAD = property(HEAD) |
153 @property | 152 |
154 def START(self): | 153 def START(self): |
155 return 0 | 154 return 0 |
156 | 155 START = property(START) |
157 @property | 156 |
158 def branches(self): | 157 def branches(self): |
159 """Get the branches defined in this repo assuming a standard layout. | 158 """Get the branches defined in this repo assuming a standard layout. |
160 """ | 159 """ |
161 branches = self.list_dir('branches').keys() | 160 branches = self.list_dir('branches').keys() |
162 branch_info = {} | 161 branch_info = {} |
171 # Note that they probably are really ancestrally related, but there | 170 # Note that they probably are really ancestrally related, but there |
172 # is just no way for us to know how. | 171 # is just no way for us to know how. |
173 if source is not None and source_rev is not None: | 172 if source is not None and source_rev is not None: |
174 branch_info[b] = (source, source_rev, hist.revnum) | 173 branch_info[b] = (source, source_rev, hist.revnum) |
175 return branch_info | 174 return branch_info |
176 | 175 branches = property(branches) |
177 @property | 176 |
178 def tags(self): | 177 def tags(self): |
179 """Get the current tags in this repo assuming a standard layout. | 178 """Get the current tags in this repo assuming a standard layout. |
180 | 179 |
181 This returns a dictionary of tag: (source path, source rev) | 180 This returns a dictionary of tag: (source path, source rev) |
182 """ | 181 """ |
183 return self.tags_at_rev(self.HEAD) | 182 return self.tags_at_rev(self.HEAD) |
183 tags = property(tags) | |
184 | 184 |
185 def tags_at_rev(self, revision): | 185 def tags_at_rev(self, revision): |
186 try: | 186 try: |
187 tags = self.list_dir('tags', revision=revision).keys() | 187 tags = self.list_dir('tags', revision=revision).keys() |
188 except core.SubversionException, e: | 188 except core.SubversionException, e: |