##// END OF EJS Templates
infinitepush: ensure fileindex bookmarks use '/' separators (issue5840)...
Matt Harbison -
r37829:51dee6fa stable
parent child Browse files
Show More
@@ -15,6 +15,8 b' from __future__ import absolute_import'
15
15
16 import os
16 import os
17
17
18 from mercurial import util
19
18 from mercurial.utils import stringutil
20 from mercurial.utils import stringutil
19
21
20 from . import indexapi
22 from . import indexapi
@@ -82,6 +84,7 b' class fileindexapi(indexapi.indexapi):'
82 for dirpath, _, books in self._repo.vfs.walk(self._bookmarkmap):
84 for dirpath, _, books in self._repo.vfs.walk(self._bookmarkmap):
83 for book in books:
85 for book in books:
84 bookmark = os.path.join(dirpath, book)[prefixlen:]
86 bookmark = os.path.join(dirpath, book)[prefixlen:]
87 bookmark = util.pconvert(bookmark)
85 if not matcher(bookmark):
88 if not matcher(bookmark):
86 continue
89 continue
87 yield bookmark, self._read(os.path.join(dirpath, book))
90 yield bookmark, self._read(os.path.join(dirpath, book))
General Comments 0
You need to be logged in to leave comments. Login now