Lines Matching refs:SVN
154 system("svn", "move", $source, $destination);
177 system("svn", "propset", "svn:executable", "on", $path) == 0 or die "Failed to run 'svn propset svn:executable on $path'.";
188 system("svn", "propdel", "svn:executable", $path) == 0 or die "Failed to run 'svn propdel svn:executable $path'.";
213 # if you're in a git-svn checkout. The best suggestions seen so far
215 my $output = `git config --get svn-remote.svn.fetch 2>& 1`;
251 return -d File::Spec->catdir($dir, ".svn");
269 chomp($svnVersion = `svn --version --quiet`);
307 open INFO, "svn info '$path' 2> " . File::Spec->devnull() . " |" or die;
347 # Some users have a workflow where svn-create-patch, svn-apply and
348 # svn-unapply are used outside of multiple svn working directores,
363 my $svnInfo = `LC_ALL=C svn info $dir | grep Revision:`;
366 my $gitLog = `cd $dir && LC_ALL=C git log --grep='git-svn-id: ' -n 1 | grep git-svn-id:`;
367 ($revision) = ($gitLog =~ m/ +git-svn-id: .+@(\d+) /g);
369 die "Unable to determine current SVN revision in $dir" unless (defined $revision);
380 $svnInfo = `LC_ALL=C svn info $relativePath`;
382 $svnInfo = `LC_ALL=C git svn info $relativePath`;
492 open SVN, "svn status --non-interactive --non-recursive '$fullPath' |" or die;
494 # When running "svn stat" on a directory, we can't assume that only one
499 while (<SVN>) {
508 # Read the rest of the svn command output to avoid a broken pipe warning.
510 <SVN>;
514 $svnStatus = removeEOL(<SVN>) . "\n";
516 close SVN;
524 # the default behavior in Git and SVN.
565 # svnConvertedText: the header text with some lines converted to SVN
581 $_ = "Index: $indexPath$POSTMATCH"; # Convert to SVN format.
614 # This will simplify adding rename support to svn-unapply.
618 # permit us to use "svn move" and "git move".
622 $_ = "--- $indexPath"; # Convert to SVN format.
624 $_ = "+++ $indexPath"; # Convert to SVN format.
661 # Parse the next SVN diff header from the given file handle, and advance
697 die("First line of SVN diff does not begin with \"Index \": \"$_\"");
720 # The "from" clause is created by svn-create-patch, in
765 # line of the header to parse. For SVN-formatted diffs, this
781 # isSvn: the value 1 if the diff is SVN-formatted.
785 # svnConvertedText: the header text with some lines converted to SVN
816 # that, if necessary, the text of an SVN or Git patch can be
831 # indexPath: the path of the target file. For SVN-formatted diffs,
837 # isSvn: the value 1 if the diff is SVN-formatted.
841 # svnConvertedText: the diff with some lines converted to SVN format.
844 # Parse one diff from a patch file created by svn-create-patch, and
850 # Composition of an SVN diff
852 # There are three parts to an SVN diff: the header, the property change, and
879 my $headerStartRegEx = $svnDiffStartRegEx; # SVN-style header for the default
882 my $svnPropertiesHashRef; # Last SVN properties diff found, as returned by parseSvnDiffProperties().
889 # all diffs in the patch are formatted the same (SVN or Git).
918 # Then either we just processed an SVN property change or this
959 # SVN records the change to the executable bit in a separate property change diff
981 # Note, we may not always have SVN converted text since we intend
984 # any SVN converted text.
1001 # Parse an SVN property change diff from the given file handle, and advance
1004 # For the case of an SVN binary diff, the binary contents will follow the
1017 # $propertyHashRef: a hash reference representing an SVN diff footer.
1032 die("Failed to find start of SVN property change, \"Property changes on \": \"$_\"");
1040 # Added: svn:executable
1050 # FIXME: We should expand this to support other SVN properties
1061 if ($propertyHashRef->{name} eq "svn:executable") {
1062 # Notice, for SVN properties, propertyChangeDelta is always non-zero
1071 # Parse the next SVN property from the given file handle, and advance the handle so the last
1074 # This subroutine dies if the first line is not a valid start of an SVN property,
1085 # $propertyHashRef: a hash reference representing a SVN property.
1106 die("Failed to find SVN property: \"$_\".");
1111 # The "svn diff" command neither inserts newline characters between property values
1132 die("Failed to find the property value for the SVN property \"$propertyName\": \"$_\".");
1165 # Parse the value of an SVN property from the given file handle, and advance
1168 # This subroutine dies if the first line is an invalid SVN property value line
1216 # Parse a patch file created by svn-create-patch.
1250 # Prepare the results of parsePatch() for use in svn-apply and svn-unapply.
1380 # Applying this subroutine to ChangeLog patches allows svn-apply to
1382 # svn-apply uses patch with --fuzz=3 to do this. We need to apply
1625 # an svn update.