Skip to content

Commit

Permalink
[backend] try to fix cmd=branch command (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jan 24, 2012
1 parent 591268a commit bdac553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -4686,7 +4686,7 @@ sub sourcebranch {
my $opackid = exists($cgi->{'opackage'}) ? $cgi->{'opackage'} : $packid;
my $orev = $cgi->{'orev'};
die("cannot branch myself\n") if $oprojid eq $projid && $opackid eq $packid;
$orev = getrev($oprojid, $opackid, undef, undef, $cgi->{'missingok'});
$orev = getrev($oprojid, $opackid, defined($orev) ? $orev : 'latest', undef, $cgi->{'missingok'});
$orev->{'linkrev'} = $cgi->{'olinkrev'} if $cgi->{'olinkrev'};
my $files = lsrev_expanded($orev); # modifies srcmd5, thus also needed for keepcontent case
if ($cgi->{'keepcontent'}) {
Expand Down

0 comments on commit bdac553

Please sign in to comment.