Show More
@@ -6,6 +6,7 b'' | |||||
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from i18n import _ |
|
8 | from i18n import _ | |
|
9 | from mercurial.node import nullrev | |||
9 | import util, error, osutil, revset, similar, encoding, phases |
|
10 | import util, error, osutil, revset, similar, encoding, phases | |
10 | import match as matchmod |
|
11 | import match as matchmod | |
11 | import os, errno, re, stat, sys, glob |
|
12 | import os, errno, re, stat, sys, glob | |
@@ -647,6 +648,8 b' def revrange(repo, revs):' | |||||
647 | start, end = spec.split(_revrangesep, 1) |
|
648 | start, end = spec.split(_revrangesep, 1) | |
648 | start = revfix(repo, start, 0) |
|
649 | start = revfix(repo, start, 0) | |
649 | end = revfix(repo, end, len(repo) - 1) |
|
650 | end = revfix(repo, end, len(repo) - 1) | |
|
651 | if end == nullrev and start <= 0: | |||
|
652 | start = nullrev | |||
650 | rangeiter = repo.changelog.revs(start, end) |
|
653 | rangeiter = repo.changelog.revs(start, end) | |
651 | if not seen and not l: |
|
654 | if not seen and not l: | |
652 | # by far the most common case: revs = ["-1:0"] |
|
655 | # by far the most common case: revs = ["-1:0"] |
@@ -1296,4 +1296,13 b' test hg log on non-existent files and on' | |||||
1296 | changeset: 0:65624cd9070a |
|
1296 | changeset: 0:65624cd9070a | |
1297 | $ hg log -l1 .d6/f1 | grep changeset |
|
1297 | $ hg log -l1 .d6/f1 | grep changeset | |
1298 | changeset: 0:65624cd9070a |
|
1298 | changeset: 0:65624cd9070a | |
|
1299 | ||||
|
1300 | issue3772: hg log -r :null showing revision 0 as well | |||
|
1301 | ||||
|
1302 | $ hg log -r :null | |||
|
1303 | changeset: -1:000000000000 | |||
|
1304 | user: | |||
|
1305 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
1306 | ||||
|
1307 | ||||
1299 | $ cd .. |
|
1308 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now