##// END OF EJS Templates
merge with stable
Nicolas Dumazet -
r12973:6e0a9f92 merge default
parent child Browse files
Show More
@@ -1143,7 +1143,7 b' def walkchangerevs(repo, match, opts, pr'
1143 continue
1143 continue
1144 # only yield rev for which we have the changelog, it can
1144 # only yield rev for which we have the changelog, it can
1145 # happen while doing "hg log" during a pull or commit
1145 # happen while doing "hg log" during a pull or commit
1146 if linkrev > maxrev or linkrev >= cl_count:
1146 if linkrev >= cl_count:
1147 break
1147 break
1148
1148
1149 parentlinkrevs = []
1149 parentlinkrevs = []
@@ -1185,11 +1185,20 b' def walkchangerevs(repo, match, opts, pr'
1185
1185
1186 # iterate from latest to oldest revision
1186 # iterate from latest to oldest revision
1187 for rev, flparentlinkrevs, copied in filerevgen(filelog, last):
1187 for rev, flparentlinkrevs, copied in filerevgen(filelog, last):
1188 if rev not in ancestors:
1188 if not follow:
1189 continue
1189 if rev > maxrev:
1190 # XXX insert 1327 fix here
1190 continue
1191 if flparentlinkrevs:
1191 else:
1192 ancestors.update(flparentlinkrevs)
1192 # Note that last might not be the first interesting
1193 # rev to us:
1194 # if the file has been changed after maxrev, we'll
1195 # have linkrev(last) > maxrev, and we still need
1196 # to explore the file graph
1197 if rev not in ancestors:
1198 continue
1199 # XXX insert 1327 fix here
1200 if flparentlinkrevs:
1201 ancestors.update(flparentlinkrevs)
1193
1202
1194 fncache.setdefault(rev, []).append(file_)
1203 fncache.setdefault(rev, []).append(file_)
1195 wanted.add(rev)
1204 wanted.add(rev)
@@ -1020,6 +1020,15 b' log -p -R repo'
1020 summary: add foo, related
1020 summary: add foo, related
1021
1021
1022
1022
1023 Also check when maxrev < lastrevfilelog
1024
1025 $ hg --traceback log -f -r4 foo
1026 changeset: 4:88176d361b69
1027 user: test
1028 date: Thu Jan 01 00:00:00 1970 +0000
1029 summary: add foo, related
1030
1031
1023 Issue2383: hg log showing _less_ differences than hg diff
1032 Issue2383: hg log showing _less_ differences than hg diff
1024
1033
1025 $ hg init issue2383
1034 $ hg init issue2383
@@ -1092,3 +1101,19 b' Diff here should be the same:'
1092 +b
1101 +b
1093
1102
1094 $ cd ..
1103 $ cd ..
1104
1105 'hg log -r rev fn' when last(filelog(fn)) != rev
1106
1107 $ hg init simplelog; cd simplelog
1108 $ echo f > a
1109 $ hg ci -Am'a' -d '0 0'
1110 adding a
1111 $ echo f >> a
1112 $ hg ci -Am'a bis' -d '1 0'
1113
1114 $ hg log -r0 a
1115 changeset: 0:9f758d63dcde
1116 user: test
1117 date: Thu Jan 01 00:00:00 1970 +0000
1118 summary: a
1119
General Comments 0
You need to be logged in to leave comments. Login now