# HG changeset patch # User John Schneiderman # Date 1407460584 18000 # Node ID 3ae2aa2d3ea9ff3c6870619c34a37839ee20a6e4 # Parent 98f5ce7e8326199e027cb91f45a84462b6816cb3 Added clearing output of what is happening. IN: - diff -r 98f5ce7e8326 -r 3ae2aa2d3ea9 src/ignorepo.py --- 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 '' diff -r 98f5ce7e8326 -r 3ae2aa2d3ea9 src/manager.py --- 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)