1
1

Don't save the old .hgignore file

This commit was SVN r19399.
Этот коммит содержится в:
Jeff Squyres 2008-08-25 12:55:07 +00:00
родитель f722f134f7
Коммит 7bcd285e98

Просмотреть файл

@ -51,15 +51,9 @@ static-components.h
# Start at the top level # Start at the top level
process("."); process(".");
# If there's an old .hgignore, save it # If there's an old .hgignore, delete it
if (-f ".hgignore") { unlink(".hgignore")
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = if (-f ".hgignore");
localtime(time);
my $new_name = sprintf(".hgignore.%04d%02d%02d-%02d%02d",
$year + 1900, $mon + 1, $mday, $hour, $min);
rename(".hgignore", $new_name) ||
die "Unable to rename old .hgignore file: $!";
}
# Write the new one # Write the new one
open(FILE, ">.hgignore"); open(FILE, ">.hgignore");