summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/tlpkg/TeXLive/TLTREE.pm8
-rw-r--r--Master/tlpkg/doc/Perl-API.txt3
2 files changed, 11 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLTREE.pm b/Master/tlpkg/TeXLive/TLTREE.pm
index f979618b303..8b508bef634 100644
--- a/Master/tlpkg/TeXLive/TLTREE.pm
+++ b/Master/tlpkg/TeXLive/TLTREE.pm
@@ -45,6 +45,13 @@ sub init_from_statusfile {
close(TMP);
$self->_initialize_lines(@lines);
}
+sub init_from_files {
+ my $self = shift;
+ my $svnroot = $self->{'svnroot'};
+ my @lines = `find $svnroot ! -wholename '*/.svn*'`;
+ @lines = map { s@^$svnroot@@; s@^/@@; " 1 1 dummy $_" } @lines;
+ $self->_initialize_lines(@lines);
+}
sub _initialize_lines {
my $self = shift;
@@ -217,6 +224,7 @@ sub _get_matching_files {
# . -> \.
# * -> .*
# ? -> .
+# + -> \+
sub _get_files_matching_glob_pattern {
my $self = shift;
my ($type,$globline) = @_;
diff --git a/Master/tlpkg/doc/Perl-API.txt b/Master/tlpkg/doc/Perl-API.txt
index ee1e3e69443..2f92a6000a9 100644
--- a/Master/tlpkg/doc/Perl-API.txt
+++ b/Master/tlpkg/doc/Perl-API.txt
@@ -150,6 +150,9 @@ Init functions
$tltree->init_from_statusfile($file)
does the same as init_from_svn, but from a pre-made
output of svn status -v
+ $tltree->init_from_files
+ inits from a find $svnroot command, all the revisions
+ are set to 1
Input/Ouput