git-svn: respect lower bound of -r/--revision when following parent
When an explicit --revision argument is specified, do not fetch past the specified range into the beginning of history. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
		 Eric Wong
					Eric Wong
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							91776491da
						
					
				
				
					commit
					d627de6b13
				
			| @ -1682,7 +1682,10 @@ sub find_parent_branch { | |||||||
| 	} | 	} | ||||||
| 	my ($r0, $parent) = $gs->find_rev_before($r, 1); | 	my ($r0, $parent) = $gs->find_rev_before($r, 1); | ||||||
| 	if (!defined $r0 || !defined $parent) { | 	if (!defined $r0 || !defined $parent) { | ||||||
| 		$gs->fetch(0, $r); | 		my ($base, $head) = parse_revision_argument(0, $r); | ||||||
|  | 		if ($base <= $r) { | ||||||
|  | 			$gs->fetch($base, $r); | ||||||
|  | 		} | ||||||
| 		($r0, $parent) = $gs->last_rev_commit; | 		($r0, $parent) = $gs->last_rev_commit; | ||||||
| 	} | 	} | ||||||
| 	if (defined $r0 && defined $parent) { | 	if (defined $r0 && defined $parent) { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user