diff --git a/tren.py b/tren.py index f77634c..b7427cc 100755 --- a/tren.py +++ b/tren.py @@ -9,7 +9,7 @@ BASENAME = PROGNAME.split(".py")[0] PROGENV = BASENAME.upper() INCLENV = PROGENV + "INCL" -RCSID = "$Id: tren.py,v 1.225 2010/08/25 18:08:41 tundra Exp $" +RCSID = "$Id: tren.py,v 1.226 2010/08/25 18:54:38 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -336,6 +336,7 @@ dINCLFILES = "Included Files:" dPROGENV = "$" + PROGENV dRENREQ = "Renaming Request:" +dRENSEQ = "Renaming Sequence: %s" dRENTARGET = "Rename Target:" dRESOLVEDOPTS = "Resolved Command Line" dSEPCHAR = "-" # Used for debug separator lines @@ -923,10 +924,14 @@ for target in self.SortViews[ORDERBYCMDLINE]: + rensequence = [] oldname, pathname = self.RenNames[target][BASE], self.RenNames[target][PATHNAME] newname = oldname name = oldname + # Keep track of incremental renaming for use by debug + rensequence.append(oldname) + for renrequest in self.RenRequests: # Handle conventional string replacement renaming requests @@ -1062,6 +1067,14 @@ # Any subsequent replacements operate on the modified name name = newname + # Keep track of incremental renaming for use by debug + rensequence.append(newname) + + # Show the incremental renaming steps if debug is on + + if ProgramOptions[DEBUG]: + DebugMsg(dRENSEQ % ARROW.join(rensequence)) + # Nothing to do, if old- and new names are the same if newname != oldname: