fetch_strategy: remove vestigial code (#15431)
This commit is contained in:
parent
97d46dc36f
commit
32a3d59bfa
@ -29,7 +29,6 @@
|
|||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import xml.etree.ElementTree
|
|
||||||
|
|
||||||
import llnl.util.tty as tty
|
import llnl.util.tty as tty
|
||||||
import six
|
import six
|
||||||
@ -760,13 +759,6 @@ def mirror_id(self):
|
|||||||
result = os.path.sep.join(['git', repo_path, repo_ref])
|
result = os.path.sep.join(['git', repo_path, repo_ref])
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_source_id(self):
|
|
||||||
if not self.branch:
|
|
||||||
return
|
|
||||||
output = self.git('ls-remote', self.url, self.branch, output=str)
|
|
||||||
if output:
|
|
||||||
return output.split()[0]
|
|
||||||
|
|
||||||
def _repo_info(self):
|
def _repo_info(self):
|
||||||
args = ''
|
args = ''
|
||||||
|
|
||||||
@ -944,11 +936,6 @@ def cachable(self):
|
|||||||
def source_id(self):
|
def source_id(self):
|
||||||
return self.revision
|
return self.revision
|
||||||
|
|
||||||
def get_source_id(self):
|
|
||||||
output = self.svn('info', '--xml', self.url, output=str)
|
|
||||||
info = xml.etree.ElementTree.fromstring(output)
|
|
||||||
return info.find('entry/commit').get('revision')
|
|
||||||
|
|
||||||
def mirror_id(self):
|
def mirror_id(self):
|
||||||
if self.revision:
|
if self.revision:
|
||||||
repo_path = url_util.parse(self.url).path
|
repo_path = url_util.parse(self.url).path
|
||||||
@ -1064,11 +1051,6 @@ def mirror_id(self):
|
|||||||
result = os.path.sep.join(['hg', repo_path, self.revision])
|
result = os.path.sep.join(['hg', repo_path, self.revision])
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_source_id(self):
|
|
||||||
output = self.hg('id', self.url, output=str)
|
|
||||||
if output:
|
|
||||||
return output.strip()
|
|
||||||
|
|
||||||
@_needs_stage
|
@_needs_stage
|
||||||
def fetch(self):
|
def fetch(self):
|
||||||
if self.stage.expanded:
|
if self.stage.expanded:
|
||||||
|
Loading…
Reference in New Issue
Block a user