mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	Here's a diff-stat: Doc/Zsh/contrib.yo | 506 ++++++++++++++------- Functions/VCS_Info/.distfiles | 1 + Functions/VCS_Info/Backends/VCS_INFO_detect_hg | 14 +- Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 35 +- Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | 295 +++++++++---- Functions/VCS_Info/VCS_INFO_formats | 26 +- Functions/VCS_Info/VCS_INFO_hook | 10 +- Functions/VCS_Info/VCS_INFO_quilt | 190 ++++++++ Functions/VCS_Info/vcs_info | 30 +- Misc/.distfiles | 1 + Misc/vcs_info-examples | 496 ++++++++++++++++++++ 11 files changed, 1303 insertions(+), 301 deletions(-) The major changes are vast improvements for the mercurial (hg) backend (which was done almost entirely by Seth); improved documentation (mostly done by Simon and again Seth); quilt support (as an addon and stand alone, see the manual for details); a number of new hooks and a fair share of bugfixes.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			674 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			674 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| ## vim:ft=zsh
 | |
| ## mercurial support by: Frank Terbeck <ft@bewatermyfriend.org>
 | |
| ## Distributed under the same BSD-ish license as zsh itself.
 | |
| 
 | |
| setopt localoptions NO_shwordsplit
 | |
| 
 | |
| [[ $1 == '--flavours' ]] && { print -l hg-git hg-hgsubversion hg-hgsvn; return 0 }
 | |
| 
 | |
| VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
 | |
| vcs_comm[detect_need_file]=store
 | |
| VCS_INFO_bydir_detect '.hg' || return 1
 | |
| 
 | |
| if [[ -d ${vcs_comm[basedir]}/.hg/svn ]] ; then
 | |
|     vcs_comm[overwrite_name]='hg-hgsubversion'
 | |
| elif [[ -d ${vcs_comm[basedir]}/.hgsvn ]] ; then
 | |
|     vcs_comm[overwrite_name]='hg-hgsvn'
 | |
| elif [[ -e ${vcs_comm[basedir]}/.hg/git-mapfile ]] ; then
 | |
|     vcs_comm[overwrite_name]='hg-git'
 | |
| fi
 | |
| return 0
 |