Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 25739:3dabc9b7494a
changeset_printer: use node.wdirrev to calculate meaningful parentrevs
Because we defined the working-directory revision is INT_MAX, it makes sense
that "hg log -r 'wdir()'" displays the "parent:" field. This is the same for
two revisions that are semantically contiguous but the intermediate revisions
are hidden.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 02 Jul 2015 22:03:06 +0900 |
parents | 68c83b8d407a |
children | 72d395e399c1 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Jun 22 22:05:10 2015 +0900 +++ b/mercurial/cmdutil.py Thu Jul 02 22:03:06 2015 +0900 @@ -1272,7 +1272,7 @@ return parents if self.ui.debugflag: return [parents[0], self.repo['null']] - if parents[0].rev() >= scmutil.intrev(self.repo, ctx.rev()) - 1: + if parents[0].rev() >= scmutil.intrev(ctx.rev()) - 1: return [] return parents