コード例 #1
0
 def branch(self):
     config_file = os.path.join(self.directory, '.hg', 'branch')
     return get_branch_name(
         directory=self.directory,
         config_file=config_file,
         get_func=branch_name_from_config_file,
         create_watcher=self.create_watcher,
     )
コード例 #2
0
ファイル: mercurial.py プロジェクト: 21gunnns/powerline
	def branch(self):
		config_file = join(self.directory, '.hg', 'branch')
		return get_branch_name(
			directory=self.directory,
			config_file=config_file,
			get_func=branch_name_from_config_file,
			create_watcher=self.create_watcher,
		)
コード例 #3
0
ファイル: bzr.py プロジェクト: nhannguyen/powerline
 def branch(self):
     config_file = os.path.join(self.directory, ".bzr", "branch", "branch.conf")
     return get_branch_name(
         directory=self.directory,
         config_file=config_file,
         get_func=branch_name_from_config_file,
         create_watcher=self.create_watcher,
     )
コード例 #4
0
 def branch(self):
     directory = git_directory(self.directory)
     head = join(directory, 'HEAD')
     return get_branch_name(
         directory=directory,
         config_file=head,
         get_func=branch_name_from_config_file,
         create_watcher=self.create_watcher,
     )
コード例 #5
0
ファイル: git.py プロジェクト: zedwarth/dotfiles
	def branch(self):
		directory = git_directory(self.directory)
		head = os.path.join(directory, 'HEAD')
		return get_branch_name(
			directory=directory,
			config_file=head,
			get_func=branch_name_from_config_file,
			create_watcher=self.create_watcher,
		)
コード例 #6
0
ファイル: bzr.py プロジェクト: IanVaughan/dotfiles
	def branch(self):
		config_file = os.path.join(self.directory, '.bzr', 'branch', 'branch.conf')
		return get_branch_name(self.directory, config_file, branch_name_from_config_file)
コード例 #7
0
 def branch(self):
     config_file = os.path.join(self.directory, '.hg', 'branch')
     return get_branch_name(self.directory, config_file,
                            branch_name_from_config_file)