summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/metadata_scm.bbclass24
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass
index 658e2f883b..58bb4c555a 100644
--- a/meta/classes/metadata_scm.bbclass
+++ b/meta/classes/metadata_scm.bbclass
@@ -12,30 +12,6 @@ def base_detect_branch(d):
12def base_get_scmbasepath(d): 12def base_get_scmbasepath(d):
13 return os.path.join(d.getVar('COREBASE'), 'meta') 13 return os.path.join(d.getVar('COREBASE'), 'meta')
14 14
15def base_get_metadata_monotone_branch(path, d):
16 monotone_branch = "<unknown>"
17 try:
18 with open("%s/_MTN/options" % path) as f:
19 monotone_branch = f.read().strip()
20 if monotone_branch.startswith( "database" ):
21 monotone_branch_words = monotone_branch.split()
22 monotone_branch = monotone_branch_words[ monotone_branch_words.index( "branch" )+1][1:-1]
23 except:
24 pass
25 return monotone_branch
26
27def base_get_metadata_monotone_revision(path, d):
28 monotone_revision = "<unknown>"
29 try:
30 with open("%s/_MTN/revision" % path) as f:
31 monotone_revision = f.read().strip()
32 if monotone_revision.startswith( "format_version" ):
33 monotone_revision_words = monotone_revision.split()
34 monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1]
35 except IOError:
36 pass
37 return monotone_revision
38
39def base_get_metadata_svn_revision(path, d): 15def base_get_metadata_svn_revision(path, d):
40 # This only works with older subversion. For newer versions 16 # This only works with older subversion. For newer versions
41 # this function will need to be fixed by someone interested 17 # this function will need to be fixed by someone interested