Permalink
Browse files

Item13568: tools/bulk_copy: keep previous revisions when writing new one

  • Loading branch information...
1 parent 8eeffef commit a8b56f70bbb243c7d2f7d91c2807c063de986e1d @jast jast committed Jul 30, 2015
Showing with 0 additions and 12 deletions.
  1. +0 −12 core/tools/bulk_copy.pl
View
@@ -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,

0 comments on commit a8b56f7

Please sign in to comment.