Commits

Jannis Leidel committed 3b00530

Moved helper methods used in RequirementSet at the actual right place

Comments (0)

Files changed (1)

         finally:
             logger.indent -= 2
 
-    def git_clone(self, url, location):
-        """Clone the Git repository at the url to the destination location"""
-        if '#' in url:
-            url = url.split('#', 1)[0]
-        logger.notify('Cloning Git repository %s to %s' % (url, location))
-        logger.indent += 2
-        try:
-            if os.path.exists(location):
-                os.rmdir(location)
-            call_subprocess([GIT_CMD, 'clone', url, location],
-                            filter_stdout=self._filter_svn, show_stdout=False)
-        finally:
-            logger.indent -= 2
-
-    def hg_clone(self, url, location):
-        """Clone the Hg repository at the url to the destination location"""
-        if '#' in url:
-            url = url.split('#', 1)[0]
-        logger.notify('Cloning Mercurial repository %s to %s' % (url, location))
-        logger.indent += 2
-        try:
-            if os.path.exists(location):
-                os.rmdir(location)
-            call_subprocess(['hg', 'clone', url, location],
-                            filter_stdout=self._filter_svn, show_stdout=False)
-        finally:
-            logger.indent -= 2
-
     def _filter_install(self, line):
         level = Logger.NOTIFY
         for regex in [r'^running .*', r'^writing .*', '^creating .*', '^[Cc]opying .*',
         finally:
             logger.indent -= 2
 
+    def git_clone(self, url, location):
+        """Clone the Git repository at the url to the destination location"""
+        if '#' in url:
+            url = url.split('#', 1)[0]
+        logger.notify('Cloning Git repository %s to %s' % (url, location))
+        logger.indent += 2
+        try:
+            if os.path.exists(location):
+                os.rmdir(location)
+            call_subprocess([GIT_CMD, 'clone', url, location],
+                            filter_stdout=self._filter_svn, show_stdout=False)
+        finally:
+            logger.indent -= 2
+
+    def hg_clone(self, url, location):
+        """Clone the Hg repository at the url to the destination location"""
+        if '#' in url:
+            url = url.split('#', 1)[0]
+        logger.notify('Cloning Mercurial repository %s to %s' % (url, location))
+        logger.indent += 2
+        try:
+            if os.path.exists(location):
+                os.rmdir(location)
+            call_subprocess(['hg', 'clone', url, location],
+                            filter_stdout=self._filter_svn, show_stdout=False)
+        finally:
+            logger.indent -= 2
+
     def _filter_svn(self, line):
         return (Logger.INFO, line)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.