##// END OF EJS Templates
log: fix traceback for log -k caused by 1ef630452e0b (issue1805)
Dirkjan Ochtman -
r9373:b34184c0 default
parent child Browse files
Show More
@@ -2052,7 +2052,7 b' def log(ui, repo, *pats, **opts):'
2052 for k in [kw.lower() for kw in opts['keyword']]:
2052 for k in [kw.lower() for kw in opts['keyword']]:
2053 if not (k in ctx.user().lower() or
2053 if not (k in ctx.user().lower() or
2054 k in ctx.description().lower() or
2054 k in ctx.description().lower() or
2055 k in " ".join(ctx.files()[3]).lower()):
2055 k in " ".join(ctx.files()).lower()):
2056 miss = 1
2056 miss = 1
2057 break
2057 break
2058 if miss:
2058 if miss:
@@ -104,6 +104,9 b" hg log -r ''"
104 echo '% log -r <some unknown node id>'
104 echo '% log -r <some unknown node id>'
105 hg log -r 1000000000000000000000000000000000000000
105 hg log -r 1000000000000000000000000000000000000000
106
106
107 echo '% log -k r1'
108 hg log -k r1
109
107 cd ..
110 cd ..
108
111
109 hg init usertest
112 hg init usertest
@@ -239,6 +239,12 b' diff --git a/b1 b/b1'
239 abort: 00changelog.i@: ambiguous identifier!
239 abort: 00changelog.i@: ambiguous identifier!
240 % log -r <some unknown node id>
240 % log -r <some unknown node id>
241 abort: unknown revision '1000000000000000000000000000000000000000'!
241 abort: unknown revision '1000000000000000000000000000000000000000'!
242 % log -k r1
243 changeset: 1:3d5bf5654eda
244 user: test
245 date: Thu Jan 01 00:00:01 1970 +0000
246 summary: r1
247
242 adding a
248 adding a
243 adding b
249 adding b
244 changeset: 0:29a4c94f1924
250 changeset: 0:29a4c94f1924
General Comments 0
You need to be logged in to leave comments. Login now