comparison test/org/tmatesoft/hg/test/MapTagsToFileRevisions.java @ 427:31a89587eb04

FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 17:14:35 +0200
parents 063b0663495a
children 12f668401613
comparison
equal deleted inserted replaced
426:063b0663495a 427:31a89587eb04
425 } 425 }
426 426
427 final HgLogCommand logCommand = new HgLogCommand(repository); 427 final HgLogCommand logCommand = new HgLogCommand(repository);
428 logCommand.file(targetPath, true); 428 logCommand.file(targetPath, true);
429 logCommand.execute(new HgChangesetHandler() { 429 logCommand.execute(new HgChangesetHandler() {
430 public void next(HgChangeset changeset) { 430 public void cset(HgChangeset changeset) {
431 if (changeset.getAffectedFiles().contains(targetPath)) { 431 if (changeset.getAffectedFiles().contains(targetPath)) {
432 System.out.println(changeset.getRevisionIndex() + " " + changeSetRevisionToTags.get(changeset.getNodeid())); 432 System.out.println(changeset.getRevisionIndex() + " " + changeSetRevisionToTags.get(changeset.getNodeid()));
433 } 433 }
434 } 434 }
435 }); 435 });