Skip to content

Commit

Permalink
Item13568: tools/bulk_copy: keep previous revisions when writing new one
Browse files Browse the repository at this point in the history
  • Loading branch information
jast committed Jul 30, 2015
1 parent 8eeffef commit a8b56f7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions core/tools/bulk_copy.pl
Expand Up @@ -487,18 +487,6 @@ sub saveTopicRev {
#debug "SAVE $web.$topic author $info->{author} rev $info->{version}\n$data\n";
return 0 if $control{check_only};

# When saving over existing revs of a topic, must make sure we
# fully delete the existing data
if ( $session->topicExists( $web, $topic ) ) {
my $demo = Foswiki::Meta->new( $session, $web, $topic );
$demo->removeFromStore();

$mo = Foswiki::Meta->new( $session, $web, $topic );
$mo->setEmbeddedStoreForm($data);

$info = $mo->get('TOPICINFO');
}

$mo->save(
author => $info->{author},
forcenewrevision => 1,
Expand Down

0 comments on commit a8b56f7

Please sign in to comment.