##// END OF EJS Templates
convert/subversion: rehandle the no-tags case
Bryan O'Sullivan -
r4949:2f0f9528 default
parent child Browse files
Show More
@@ -206,6 +206,7 b' class convert_svn(converter_source):'
206 206 strict_node_history,
207 207 receiver)
208 208 except SubversionException, (_, num):
209 self.ui.print_exc()
209 210 pickle.dump(num, fp, protocol)
210 211 else:
211 212 pickle.dump(None, fp, protocol)
@@ -238,16 +239,20 b' class convert_svn(converter_source):'
238 239
239 240 def gettags(self):
240 241 tags = {}
241 for entry in self.get_log(['/tags'], 0, self.revnum(self.head)):
242 orig_paths, revnum, author, date, message = entry
243 for path in orig_paths:
244 if not path.startswith('/tags/'):
245 continue
246 ent = orig_paths[path]
247 source = ent.copyfrom_path
248 rev = ent.copyfrom_rev
249 tag = path.split('/', 2)[2]
250 tags[tag] = self.revid(rev, module=source)
242 start = self.revnum(self.head)
243 try:
244 for entry in self.get_log(['/tags'], 0, start):
245 orig_paths, revnum, author, date, message = entry
246 for path in orig_paths:
247 if not path.startswith('/tags/'):
248 continue
249 ent = orig_paths[path]
250 source = ent.copyfrom_path
251 rev = ent.copyfrom_rev
252 tag = path.split('/', 2)[2]
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 256 return tags
252 257
253 258 # -- helper functions --
General Comments 0
You need to be logged in to leave comments. Login now