Revert "Mercurial - use post-fix if"
This reverts commit 6a8b3cc71feccbf73225bc7dc8c5e6972de9953d. This was a bad merge on my part. Fixes Homebrew/homebrew#221. Fixes Homebrew/homebrew#220.
This commit is contained in:
		
							parent
							
								
									ac1d366fab
								
							
						
					
					
						commit
						3930361bb2
					
				@ -243,7 +243,7 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy
 | 
			
		||||
    url=@url.sub(%r[^hg://], '')
 | 
			
		||||
 | 
			
		||||
    unless @clone.exist?
 | 
			
		||||
      safe_system 'hg', 'clone', *checkout_args
 | 
			
		||||
      safe_system 'hg', 'clone', url, @clone
 | 
			
		||||
    else
 | 
			
		||||
      puts "Updating #{@clone}"
 | 
			
		||||
      Dir.chdir(@clone) { safe_system 'hg', 'update' }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user