X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/77e2cea63a828cf11972a44610530b8dd3d8c1bf..5cbbccdddf20a13283f7dde138d419f6c79486b3:/lib/vstorage.py?ds=sidebyside

diff --git a/lib/vstorage.py b/lib/vstorage.py
index ea8d5229..d67e2c10 100644
--- a/lib/vstorage.py
+++ b/lib/vstorage.py
@@ -144,7 +144,7 @@ class VersionedStorage(object):
         return urlunquote(name)
 
     def __contains__(self, title):
-        return title in self.all_pages()
+        return urlquote(title) in self.repo.dirstate
 
     def __iter__(self):
         return self.all_pages()