Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgAnnotateCommand.java @ 680:58a6900f845d
Blame: alternative strategy to handle merge revisions: map(diff(p1->base->p2)) to understand merge intentions better
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 21 Jul 2013 17:15:34 +0200 |
parents | 1c49c0cee540 |
children | f1f095e42555 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgAnnotateCommand.java Sat Jul 20 17:40:52 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgAnnotateCommand.java Sun Jul 21 17:15:34 2013 +0200 @@ -80,6 +80,17 @@ return this; } + + /** + * Select file to annotate, + * @param fileNode repository file to annotate + * @param followCopyRename true to follow copies/renames. + * @return <code>this</code> for convenience + */ + public HgAnnotateCommand file(HgDataFile fileNode, boolean followCopyRename) { + return file(fileNode.getPath(), followCopyRename); + } + // TODO [post-1.1] set encoding and provide String line content from LineInfo // TODO FWIW: diff algorithms: http://bramcohen.livejournal.com/73318.html