Mercurial > public > mercurial-scm > hg
diff tests/test-glog.t @ 16405:17deb6bbfbab
graphlog: refactor revset() to return revisions
When --follow and --rev are passed, --follow actual behaviour depends on the
input revision sequence defined by --rev. If --rev is not passed, the default
revision sequence depends on the presence of --follow. It means the revision
sequence generation is part of log logic and must be wrapped. The issue
described above is fixed in following patches.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 11 Apr 2012 11:07:30 +0200 |
parents | 0f1e621d3d3b |
children | 49ef1c382965 |
line wrap: on
line diff
--- a/tests/test-glog.t Thu Apr 12 15:21:54 2012 -0700 +++ b/tests/test-glog.t Wed Apr 11 11:07:30 2012 +0200 @@ -90,7 +90,7 @@ > def uisetup(ui): > def printrevset(orig, ui, repo, *pats, **opts): > if opts.get('print_revset'): - > expr = graphlog.revset(repo, pats, opts)[0] + > expr = graphlog.getlogrevs(repo, pats, opts)[1] > if expr: > tree = revset.parse(expr)[0] > else: @@ -1461,12 +1461,7 @@ ('symbol', 'user') ('string', 'not-a-user'))))) $ testlog -b not-a-branch - [] - (group - (group - (func - ('symbol', 'branch') - ('string', 'not-a-branch')))) + abort: unknown revision 'not-a-branch'! abort: unknown revision 'not-a-branch'! abort: unknown revision 'not-a-branch'! $ testlog -b default -b branch --only-branch branch