Login | Register
My pages Projects Community openCollabNet

Discussions > Commits > svn commit: r138 - trunk/repoguard/src/repoguard/core

repoguard
Discussion topic

Back to topic list

svn commit: r138 - trunk/repoguard/src/repoguard/core

Author schlauch
Full name Tobias Schlauch
Date 2012-10-07 08:47:31 PDT
Message Author: schlauch
Date: 2012-10-07 08:47:31-0700
New Revision: 138

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

Log:
Fixes ISSUE #48:
- Corrected error check for repositories with no committed revision.
- Allowed the checker to run the default profile if no files are in the change set.

Modified: trunk/repoguard/src/​repoguard/core/check​er.py
Url: http://repoguard.tig​ris.org/source/brows​e/repoguard/trunk/re​poguard/src/repoguar​d/core/checker.py?vi​ew=diff&pathrev=​138&r1=137&r​2=138
====================​====================​====================​==================
--- trunk/repoguard/src/​repoguard/core/check​er.py (original)
+++ trunk/repoguard/src/​repoguard/core/check​er.py 2012-10-07 08:47:31-0700
@@ -135,8 +135,8 @@
                 if not combined_profile_regexes is None:
                     ignores = [combined_profile_regexes]
                 
- # if there are no files in this profile continue
- if not self.transaction.get​_files(ignore_list=i​gnores):
+ # if there are no files in this profile continue. However, we should give the default profile a chance!
+ if not self.transaction.get​_files(ignore_list=i​gnores) and profile.name != "default":
                 self.logger.debug("Profile '%s' skipped.", profile.name)
                 continue
             

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=138&r1=137​&r2=138
====================​====================​====================​==================
--- trunk/repoguard/src/​repoguard/core/trans​action.py (original)
+++ trunk/repoguard/src/​repoguard/core/trans​action.py 2012-10-07 08:47:31-0700
@@ -67,8 +67,7 @@
         try:
             output = process.execute(command)
         except process.ProcessException, error:
- if (error.exit_code == "E160006" # Nothing bad happened we just have an empty repository
- and "Transaction '(null)'" in error.output):
+ if "E160006: Transaction '(null)'" in error.output: # Nothing bad happened we just have an empty repository
                 output = ""
             else:
                 raise

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

Messages

Show all messages in topic

svn commit: r138 - trunk/repoguard/src/repoguard/core schlauch Tobias Schlauch 2012-10-07 08:47:31 PDT
Messages per page: