Hugo Lopes Tavares avatar Hugo Lopes Tavares committed 016d389

renamed from _is_file_url_scheme to _is_local_repository - it was misnamed

Comments (0)

Files changed (3)


     def _filter(self, line):
         return (logger.INFO, line)
-    def _is_file_url_scheme(self, repo):
+    def _is_local_repository(self, repo):
            posix absolute paths start with os.path.sep,
            win32 ones ones start with drive (like c:\\folder)


                       'parent branch: '):
                 if line.startswith(x):
                     repo = line.split(x)[1]
-                    if self._is_file_url_scheme(repo):
+                    if self._is_local_repository(repo):
                         return path_to_url2(repo)
                     return repo
         return None


         url = call_subprocess(
             [self.cmd, 'showconfig', 'paths.default'],
             show_stdout=False, cwd=location).strip()
-        if self._is_file_url_scheme(url):
+        if self._is_local_repository(url):
             url = path_to_url2(url)
         return url.strip()
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
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.