Login | Register
My pages Projects Community openCollabNet

Discussions > Commits > svn commit: r149 - trunk/repoguard/src/repoguard/core/transaction.py

repoguard
Discussion topic

Back to topic list

svn commit: r149 - trunk/repoguard/src/repoguard/core/transaction.py

Author schlauch
Full name Tobias Schlauch
Date 2012-11-07 05:37:22 PST
Message Author: schlauch
Date: 2012-11-07 05:37:12-0800
New Revision: 149

Modified:
   trunk/repoguard/src/​repoguard/core/trans​action.py

Log:
Fixing nasty bug when messing around with encodings in context of svn command output.

Modified: trunk/repoguard/src/​repoguard/core/trans​action.py
Url: http://repoguard.tig​ris.org/source/brows​e/repoguard/trunk/re​poguard/src/repoguar​d/core/transaction.p​y?view=diff&path​rev=149&r1=148​&r2=149
====================​====================​====================​==================
--- trunk/repoguard/src/​repoguard/core/trans​action.py (original)
+++ trunk/repoguard/src/​repoguard/core/trans​action.py 2012-11-07 05:37:12-0800
@@ -55,7 +55,7 @@
         self.tmpdir = tempfile.mkdtemp()
         self.cache = {}
 
- def _execute_svn(self, command, arg="", split=False, raw_out=False):
+ def _execute_svn(self, command, arg="", split=False):
         if self.txn_name is None:
             command = 'svnlook %s "%s" %s' % (command, self.repos_path, arg)
         else:
@@ -65,7 +65,7 @@
             return self.cache[command]
         
         try:
- output = process.execute(command, raw_out)
+ output = process.execute(command, raw_out=True)
         except process.ProcessException, error:
             if "Transaction '(null)'" in error.output: # Nothing bad happened we just have an empty repository
                 output = ""
@@ -142,7 +142,7 @@
         if os.path.exists(tmpfilename):
             return tmpfilename
 
- content = self._execute_svn("cat", "\"" + filename + "\"", raw_out=True)
+ content = self._execute_svn("cat", "\"" + filename + "\"")
 
         dirname = os.path.dirname(filename)
         tmpdirname = os.path.join(self.tmpdir, dirname)

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r149 - trunk/repoguard/src/repoguard/core/transaction.py schlauch Tobias Schlauch 2012-11-07 05:37:22 PST
Messages per page: