changeset 30:3ae2aa2d3ea9

Added clearing output of what is happening. IN: -
author John Schneiderman <JohnMS@CodeGNU.com>
date Thu, 07 Aug 2014 20:16:24 -0500
parents 98f5ce7e8326
children 6cd1a810f95a
files src/ignorepo.py src/manager.py
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/ignorepo.py	Thu Aug 07 20:08:06 2014 -0500
+++ b/src/ignorepo.py	Thu Aug 07 20:16:24 2014 -0500
@@ -28,18 +28,18 @@
 # The types of filtering available for an ignore file.
 FilterType = enum.create('Glob', 'RegularExpression')
 
-def ignore_syntax_name(filltertype):
+def ignore_syntax_name(mapFilterType):
 	""" Provides the mapping between an enumerated filter type and the
 	 Mercurial ignore section header. If an invalid argument is supplied, an
 	 empty string is given.
 
-	 @param[in] filltertype	Is the enumerated value to map.
+	 @param[in] mapFilterType	Is the enumerated value to map.
 
 	 @return The string value of the supplied enumerated value.
 	"""
-	if FilterType.Glob == filltertype:
+	if FilterType.Glob == mapFilterType:
 		return 'glob'
-	elif FilterType.RegularExpression == filltertype:
+	elif FilterType.RegularExpression == mapFilterType:
 		return 'regexp'
 	else:
 		return ''
--- a/src/manager.py	Thu Aug 07 20:08:06 2014 -0500
+++ b/src/manager.py	Thu Aug 07 20:16:24 2014 -0500
@@ -59,9 +59,9 @@
 
 	# Fill out the details of about the repository.
 	if __writeRepositoryDetails(repository):
-		print "Successfully wrote details."
+		print "Successfully wrote display details."
 	else:
-		print >>sys.stderr, "Failed to write details."
+		print >>sys.stderr, "Failed to write display details."
 		os.chmod(settings.RepositoryPath + os.sep + repository.StorageName + os.sep + '.hg' + os.sep + "hgrc", stat.S_IWRITE)
 		shutil.rmtree(settings.RepositoryPath + os.sep + repository.StorageName)
 		return False
@@ -240,9 +240,9 @@
 	ignoreFile = settings.RepositoryPath + os.sep + repo.StorageName + os.sep + '.hgignore'
 	wasCreated = not os.path.isfile(ignoreFile)
 	if wasCreated:
-		print "Creating ignore file."
+		print "Creating ignore file ..."
 	else:
-		print "Rewriting ignore file."
+		print "Rewriting ignore file ..."
 
 	# Write Ignore File
 	with open(ignoreFile, 'w') as hgIgnore:
@@ -458,6 +458,7 @@
 	import stat
 	import sys
 
+	print "Saving display details ..."
 	config = settings.RepositoryPath + os.sep + repo.StorageName + os.sep + '.hg' + os.sep + "hgrc"
 	if os.path.exists(config):
 		hgrcMode = os.stat(config)[stat.ST_MODE]
@@ -501,6 +502,7 @@
 	import os
 
 	try:
+		print 'Securing for Windows ...'
 		status = subprocess.call(["attrib.exe", '+H', '+I', '+S', settings.RepositoryPath + os.sep + repo.StorageName + os.sep + '.hg'])
 	except OSError as e:
 		print >>sys.stderr, "Windows Guard error({0}): {1}".format(e.errno, e.strerror)