Add more difference infrastructure
This commit is contained in:
parent
a457787eea
commit
ca296aac27
1 changed files with 5 additions and 5 deletions
|
|
@ -115,14 +115,14 @@ def getgitlogdifferences(String gitrootfolder, String earlyrevision, String late
|
||||||
}
|
}
|
||||||
|
|
||||||
def extractsha(String line) {
|
def extractsha(String line) {
|
||||||
def pattern = ~"^(.*)\\s(.*)"
|
def pattern = ~"^(\\p{XDigit}*) (.*)"
|
||||||
|
|
||||||
def sha = line.replaceFirst(pattern) { _, shabit, therest -> "${shabit.trim()}" }
|
def sha = line.replaceFirst(pattern) { _, shabit, therest -> "${shabit}" }
|
||||||
def restofline = line.replaceFirst(pattern) { _, shabit, therest -> "${therest.trim()}" }
|
def restofline = line.replaceFirst(pattern) { _, shabit, therest -> "${therest}" }
|
||||||
|
|
||||||
echo "Sha filtering: line: ${line} sha: ${sha} therest: ${restofline}"
|
echo "Sha filtering: line: ${line} sha: ${sha} therest: ${restofline}"
|
||||||
|
|
||||||
return [sha, therest]
|
return [sha.trim(), therest.trim()]
|
||||||
}
|
}
|
||||||
|
|
||||||
def DifferenceRecord fillrecord(meta, line) {
|
def DifferenceRecord fillrecord(meta, line) {
|
||||||
|
|
@ -137,7 +137,7 @@ def DifferenceRecord fillrecord(meta, line) {
|
||||||
// Example of raw text to process:
|
// Example of raw text to process:
|
||||||
// 76056562e4 GIS-1621 - Removing redundant lines and effects of this - Restore nuget_version_edit.py
|
// 76056562e4 GIS-1621 - Removing redundant lines and effects of this - Restore nuget_version_edit.py
|
||||||
|
|
||||||
(sha, line) = extractsha(line)
|
(sha, line2) = extractsha(line)
|
||||||
dr.sha = sha
|
dr.sha = sha
|
||||||
|
|
||||||
dr.type = 0
|
dr.type = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue