##// END OF EJS Templates
extdata: ignore ambiguous identifier as well
Yuya Nishihara -
r34460:d5c5cc76 default
parent child Browse files
Show More
@@ -1059,9 +1059,10 b' def extdatasource(repo, source):'
1059 k, v = l.strip(), ""
1059 k, v = l.strip(), ""
1060
1060
1061 k = encoding.tolocal(k)
1061 k = encoding.tolocal(k)
1062 if k in repo:
1062 try:
1063 # we ignore data for nodes that don't exist locally
1064 data[repo[k].rev()] = encoding.tolocal(v)
1063 data[repo[k].rev()] = encoding.tolocal(v)
1064 except (error.LookupError, error.RepoLookupError):
1065 pass # we ignore data for nodes that don't exist locally
1065 finally:
1066 finally:
1066 src.close()
1067 src.close()
1067
1068
@@ -1,6 +1,6 b''
1 $ hg init repo
1 $ hg init repo
2 $ cd repo
2 $ cd repo
3 $ for n in 0 1 2 3; do
3 $ for n in 0 1 2 3 4 5 6 7 8 9 10 11; do
4 > echo $n > $n
4 > echo $n > $n
5 > hg ci -qAm $n
5 > hg ci -qAm $n
6 > done
6 > done
@@ -22,6 +22,7 b' test revset support'
22 > e834 this is buggy :(
22 > e834 this is buggy :(
23 > 0625 first post
23 > 0625 first post
24 > bogusnode gives no error
24 > bogusnode gives no error
25 > a ambiguous node gives no error
25 > EOF
26 > EOF
26
27
27 $ hg log -qr "extdata(filedata)"
28 $ hg log -qr "extdata(filedata)"
General Comments 0
You need to be logged in to leave comments. Login now