You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/03/11 03:42:47 UTC

svn commit: r1299327 - /subversion/trunk/notes/directory-index/dirindex.py

Author: brane
Date: Sun Mar 11 02:42:46 2012
New Revision: 1299327

URL: http://svn.apache.org/viewvc?rev=1299327&view=rev
Log:
* notes/directory-index/dirindex.py (Index.__init__): Make pattern searches
  case-sensitive and force text encoding to UTF-8.

Modified:
    subversion/trunk/notes/directory-index/dirindex.py

Modified: subversion/trunk/notes/directory-index/dirindex.py
URL: http://svn.apache.org/viewvc/subversion/trunk/notes/directory-index/dirindex.py?rev=1299327&r1=1299326&r2=1299327&view=diff
==============================================================================
--- subversion/trunk/notes/directory-index/dirindex.py (original)
+++ subversion/trunk/notes/directory-index/dirindex.py Sun Mar 11 02:42:46 2012
@@ -78,6 +78,8 @@ class Index(object):
         self.conn = sqlite3.connect(database, isolation_level = "IMMEDIATE")
         self.cursor = self.conn.cursor()
         self.cursor.execute("PRAGMA foreign_keys = ON")
+        self.cursor.execute("PRAGMA case_sensitive_like = ON")
+        self.cursor.execute("PRAGMA encoding = 'UTF-8'")
 
     def execute(self, statement, parameters=None):
         if parameters is not None:



Re: svn commit: r1299327 - /subversion/trunk/notes/directory-index/dirindex.py

Posted by Branko Čibej <br...@apache.org>.
On 11.03.2012 07:51, Greg Stein wrote:
> I think you need to use Hyrum's fs-py to create an FS backend out of this,
> so you can then run the test suite on it. :-)

Heh, yes, I expect I do. :)

Good idea, actually ... I've been scratching my head about how to easily
integrate this with a real backend for proof-of-concept.

-- Brane


Re: svn commit: r1299327 - /subversion/trunk/notes/directory-index/dirindex.py

Posted by Greg Stein <gs...@gmail.com>.
I think you need to use Hyrum's fs-py to create an FS backend out of this,
so you can then run the test suite on it. :-)

*duck*
On Mar 10, 2012 9:43 PM, <br...@apache.org> wrote:

> Author: brane
> Date: Sun Mar 11 02:42:46 2012
> New Revision: 1299327
>
> URL: http://svn.apache.org/viewvc?rev=1299327&view=rev
> Log:
> * notes/directory-index/dirindex.py (Index.__init__): Make pattern searches
>  case-sensitive and force text encoding to UTF-8.
>
> Modified:
>    subversion/trunk/notes/directory-index/dirindex.py
>
> Modified: subversion/trunk/notes/directory-index/dirindex.py
> URL:
> http://svn.apache.org/viewvc/subversion/trunk/notes/directory-index/dirindex.py?rev=1299327&r1=1299326&r2=1299327&view=diff
>
> ==============================================================================
> --- subversion/trunk/notes/directory-index/dirindex.py (original)
> +++ subversion/trunk/notes/directory-index/dirindex.py Sun Mar 11 02:42:46
> 2012
> @@ -78,6 +78,8 @@ class Index(object):
>         self.conn = sqlite3.connect(database, isolation_level =
> "IMMEDIATE")
>         self.cursor = self.conn.cursor()
>         self.cursor.execute("PRAGMA foreign_keys = ON")
> +        self.cursor.execute("PRAGMA case_sensitive_like = ON")
> +        self.cursor.execute("PRAGMA encoding = 'UTF-8'")
>
>     def execute(self, statement, parameters=None):
>         if parameters is not None:
>
>
>