Index: trunk/pstamp/scripts/pstamp_revert_request.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_revert_request.pl	(revision 20256)
+++ trunk/pstamp/scripts/pstamp_revert_request.pl	(revision 24831)
@@ -31,9 +31,10 @@
 
 
-my ( $req_id, $dbname, $verbose, $save_temps );
+my ( $req_id, $dbname, $dbserver, $verbose, $save_temps );
 
 GetOptions(
 	   'req_id=s'   => \$req_id,
 	   'dbname=s'   => \$dbname,
+	   'dbserver=s' => \$dbserver,
 	   'verbose'    => \$verbose,
 	   'save-temps' => \$save_temps,
@@ -65,4 +66,5 @@
     my $command = "$pstamptool -listreq -req_id $req_id";
     $command   .= " -dbname $dbname" if $dbname;
+    $command   .= " -dbserver $dbserver" if $dbserver;
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => $verbose);
@@ -97,5 +99,6 @@
 if ($product and $fileset) {
     my $command = "$dsreg --del $fileset --product $product --rm --force";
-    $command .= " --dbname $dbname" if $dbname;
+#   don't add dbname let dsreg get it from the DS_DBNAME in site.config
+#    $command .= " --dbname $dbname" if $dbname;
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => $verbose);
@@ -109,4 +112,5 @@
     my $command = "$pstamptool -revertreq -req_id $req_id";
     $command   .= " -dbname $dbname" if $dbname;
+    $command   .= " -dbserver $dbserver" if $dbserver;
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => $verbose);
