Show More
@@ -206,6 +206,7 b' class convert_svn(converter_source):' | |||||
206 | strict_node_history, |
|
206 | strict_node_history, | |
207 | receiver) |
|
207 | receiver) | |
208 | except SubversionException, (_, num): |
|
208 | except SubversionException, (_, num): | |
|
209 | self.ui.print_exc() | |||
209 | pickle.dump(num, fp, protocol) |
|
210 | pickle.dump(num, fp, protocol) | |
210 | else: |
|
211 | else: | |
211 | pickle.dump(None, fp, protocol) |
|
212 | pickle.dump(None, fp, protocol) | |
@@ -238,7 +239,9 b' class convert_svn(converter_source):' | |||||
238 |
|
239 | |||
239 | def gettags(self): |
|
240 | def gettags(self): | |
240 | tags = {} |
|
241 | tags = {} | |
241 |
|
|
242 | start = self.revnum(self.head) | |
|
243 | try: | |||
|
244 | for entry in self.get_log(['/tags'], 0, start): | |||
242 | orig_paths, revnum, author, date, message = entry |
|
245 | orig_paths, revnum, author, date, message = entry | |
243 | for path in orig_paths: |
|
246 | for path in orig_paths: | |
244 | if not path.startswith('/tags/'): |
|
247 | if not path.startswith('/tags/'): | |
@@ -248,6 +251,8 b' class convert_svn(converter_source):' | |||||
248 | rev = ent.copyfrom_rev |
|
251 | rev = ent.copyfrom_rev | |
249 | tag = path.split('/', 2)[2] |
|
252 | tag = path.split('/', 2)[2] | |
250 | tags[tag] = self.revid(rev, module=source) |
|
253 | tags[tag] = self.revid(rev, module=source) | |
|
254 | except SubversionException, (_, num): | |||
|
255 | self.ui.note('no tags found at revision %d\n' % start) | |||
251 | return tags |
|
256 | return tags | |
252 |
|
257 | |||
253 | # -- helper functions -- |
|
258 | # -- helper functions -- |
General Comments 0
You need to be logged in to leave comments.
Login now