Changeset 800 in tailor


Ignore:
Timestamp:
09/11/05 12:57:23 (8 years ago)
Author:
lele@…
Hash name:
20050911105723-97f81-832aa41ceaae6f837c8640572c6f5e448b4fb97c
Message:

Use log_xxx() methods, don't write directly to stderr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/monotone.py

    r799 r800  
    1818from target import SyncronizableTargetWorkingDir, TargetInitializationFailure 
    1919from changes import ChangesetEntry,Changeset 
    20 from sys import stderr 
    2120from os.path import exists, join, isdir 
    2221from os import renames, access, F_OK 
     
    515514                # up with only part of the ancestry graph. 
    516515                if len(revision)>1: 
    517                     stderr.write("Branch '%s' has multiple heads. There " 
    518                                  "is no guarantee to reconstruct the " 
    519                                  "full history." % module) 
     516                    self.log_info("Branch '%s' has multiple heads. There " 
     517                                  "is no guarantee to reconstruct the " 
     518                                  "full history." % module) 
    520519                cmd = [ self.repository.command("automate","ancestors", 
    521520                                                "--db",repository), 
     
    688687                    "%s returned status %s" % (str(commit),commit.exit_status)) 
    689688            else: 
    690                 stderr.write("No changes to commit - changeset ignored\n") 
     689                self.log_info("No changes to commit - changeset ignored") 
    691690 
    692691    def _removePathnames(self, names): 
     
    705704            if drop.exit_status: 
    706705                if not error.read().find("drop <directory>"): 
    707                     log_error(error.read()) 
     706                    self.log_error(error.read()) 
    708707                    raise ChangesetApplicationFailure("%s returned status %s" % 
    709708                                                      (str(drop), 
Note: See TracChangeset for help on using the changeset viewer.