mirror of https://github.com/apache/lucene.git
LUCENE-4335: Fix the bug with modifications on the SVN root folder
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1506548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c3f9d43008
commit
7b2c2df689
|
@ -94,7 +94,7 @@
|
||||||
File basedir = new File(project.getProperty('basedir')).getAbsoluteFile();
|
File basedir = new File(project.getProperty('basedir')).getAbsoluteFile();
|
||||||
int baseLen = basedir.toString().length();
|
int baseLen = basedir.toString().length();
|
||||||
def convertRelative = {
|
def convertRelative = {
|
||||||
file -> file.getAbsolutePath().substring(baseLen + 1).replace(File.separatorChar, (char)'/');
|
file -> '.' + file.getAbsolutePath().substring(baseLen).replace(File.separatorChar, (char)'/');
|
||||||
}
|
}
|
||||||
|
|
||||||
Set missingProps = new TreeSet(), unversioned = new TreeSet(), changed = new TreeSet();
|
Set missingProps = new TreeSet(), unversioned = new TreeSet(), changed = new TreeSet();
|
||||||
|
@ -108,11 +108,9 @@
|
||||||
} else if (status.getKind() == SVNNodeKind.FILE && nodeStatus != SVNStatusType.STATUS_DELETED) {
|
} else if (status.getKind() == SVNNodeKind.FILE && nodeStatus != SVNStatusType.STATUS_DELETED) {
|
||||||
missingProps.add(convertRelative(status.getFile()));
|
missingProps.add(convertRelative(status.getFile()));
|
||||||
}
|
}
|
||||||
if (status.getKind() == SVNNodeKind.FILE) {
|
if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED ||
|
||||||
if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED ||
|
nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) {
|
||||||
nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) {
|
changed.add(convertRelative(status.getFile()));
|
||||||
changed.add(convertRelative(status.getFile()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} as ISVNStatusHandler, null);
|
} as ISVNStatusHandler, null);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue