Commits

Jochen Breuer committed 1561257

Fix for previous tab space removal. Indentation was wrong.

  • Participants
  • Parent commits 1113000

Comments (0)

Files changed (1)

File hginitializer.py

             verify.verify(repo)
         except:
             print sys.stderr.write('Repository seems to be corrupt. '
-                    'Verification failed.')
+                                   'Verification failed.')
         else: # write the hgrc and .hgignore files with useful settings
             self.write_hgrc(new_repo_path, info_dict)
             self.write_hgignore(new_repo_path)
-        try:
-            # Mercurial <= 1.5
-            repo.add(['.hgignore'])
-        except:
-            # Mercurial >= 1.6
-            repo[None].add(['.hgignore'])
+            try:
+                # Mercurial <= 1.5
+                repo.add(['.hgignore'])
+            except:
+                # Mercurial >= 1.6
+                repo[None].add(['.hgignore'])
             repo.commit(text=".hgignore added.", user="hginitializer")
             # Set user and group. Should be the webserver-user.
             for root, dirs, files in os.walk(new_repo_path):
                 files.extend(dirs) # dirs are files too ;)
                 for file in files: # recursive change of user and group
                     os.chown(os.path.join(root, file), user_id, group_id)
-
+            
 
 
     def write_hgrc(self, path_to_repo, info_dict):
     if options.repo_name and options.contact and options.description:
         create_repo(options)
     else:
-        print parser.print_help()
+        print parser.print_help()