##// END OF EJS Templates
log: make log work even if first parameter doesn't exist...
Mads Kiilerich -
r18340:8802277c default
parent child Browse files
Show More
@@ -1137,8 +1137,8 b' def walkchangerevs(repo, match, opts, pr'
1137 for path in match.files():
1137 for path in match.files():
1138 if path == '.' or path in repo.store:
1138 if path == '.' or path in repo.store:
1139 break
1139 break
1140 else:
1140 else:
1141 return []
1141 return []
1142
1142
1143 if slowpath:
1143 if slowpath:
1144 # We have to read the changelog to match filenames against
1144 # We have to read the changelog to match filenames against
@@ -34,6 +34,32 b' changeset graph'
34 date: Thu Jan 01 00:00:01 1970 +0000
34 date: Thu Jan 01 00:00:01 1970 +0000
35 summary: a
35 summary: a
36
36
37 log on directory
38
39 $ hg log dir
40 changeset: 4:7e4639b4691b
41 tag: tip
42 user: test
43 date: Thu Jan 01 00:00:05 1970 +0000
44 summary: e
45
46 changeset: 2:f8954cd4dc1f
47 user: test
48 date: Thu Jan 01 00:00:03 1970 +0000
49 summary: c
50
51 $ hg log somethingthatdoesntexist dir
52 changeset: 4:7e4639b4691b
53 tag: tip
54 user: test
55 date: Thu Jan 01 00:00:05 1970 +0000
56 summary: e
57
58 changeset: 2:f8954cd4dc1f
59 user: test
60 date: Thu Jan 01 00:00:03 1970 +0000
61 summary: c
62
37
63
38 -f, directory
64 -f, directory
39
65
General Comments 0
You need to be logged in to leave comments. Login now