##// END OF EJS Templates
log: prevent negative date range from displaying entire log (issue1805)
Christian Ebert -
r9421:c8e4dc21 default
parent child Browse files
Show More
@@ -2044,7 +2044,7 b' def log(ui, repo, *pats, **opts):'
2044 if only_branches and ctx.branch() not in only_branches:
2044 if only_branches and ctx.branch() not in only_branches:
2045 continue
2045 continue
2046
2046
2047 if df and not df(ctx.date()):
2047 if df and not df(ctx.date()[0]):
2048 continue
2048 continue
2049
2049
2050 if opts.get('keyword'):
2050 if opts.get('keyword'):
@@ -107,6 +107,9 b' hg log -r 100000000000000000000000000000'
107 echo '% log -k r1'
107 echo '% log -k r1'
108 hg log -k r1
108 hg log -k r1
109
109
110 echo '% log -d -1'
111 hg log -d -1
112
110 cd ..
113 cd ..
111
114
112 hg init usertest
115 hg init usertest
@@ -245,6 +245,7 b' user: test'
245 date: Thu Jan 01 00:00:01 1970 +0000
245 date: Thu Jan 01 00:00:01 1970 +0000
246 summary: r1
246 summary: r1
247
247
248 % log -d -1
248 adding a
249 adding a
249 adding b
250 adding b
250 changeset: 0:29a4c94f1924
251 changeset: 0:29a4c94f1924
General Comments 0
You need to be logged in to leave comments. Login now