示例#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
	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
 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
	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)