comparison test/org/tmatesoft/hg/test/MapTagsToFileRevisions.java @ 366:189dc6dc1c3e

Use exceptions to expose errors reading mercurial data
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Dec 2011 04:43:18 +0100
parents 5f9073eabf06
children 2fadf8695f8a
comparison
equal deleted inserted replaced
365:3572fcb06473 366:189dc6dc1c3e
337 } 337 }
338 System.out.printf("%3d%7d%s\n", localFileRev, changesetLocalRev, associatedTags); 338 System.out.printf("%3d%7d%s\n", localFileRev, changesetLocalRev, associatedTags);
339 } 339 }
340 } 340 }
341 341
342 private void collectTagsPerFile_Approach_2(HgRepository repository, final int[] tagLocalRevs, final IntMap<List<TagInfo>> tagLocalRev2TagInfo, TagInfo[] allTags, Path targetPath) { 342 private void collectTagsPerFile_Approach_2(HgRepository repository, final int[] tagLocalRevs, final IntMap<List<TagInfo>> tagLocalRev2TagInfo, TagInfo[] allTags, Path targetPath) throws HgException {
343 // 343 //
344 // Approach 2. No all-file map. Collect file revisions recorded at the time of tagging, 344 // Approach 2. No all-file map. Collect file revisions recorded at the time of tagging,
345 // then for each file revision check if it is among those above, and if yes, take corresponding tags 345 // then for each file revision check if it is among those above, and if yes, take corresponding tags
346 HgDataFile fileNode = repository.getFileNode(targetPath); 346 HgDataFile fileNode = repository.getFileNode(targetPath);
347 final long start2 = System.nanoTime(); 347 final long start2 = System.nanoTime();