示例#1
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self)
     self.path = path or os.getcwd()
     self.workingtree = WorkingTree.open(self.path)
     self.repository = BazaarRepository(self.workingtree.branch.user_url)
     #self.repository.working_copy = self
     self._current_version = self.repository._repository.revno()
示例#2
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     self.path = os.path.realpath(path)
     client = pysvn.Client()
     try:
         url = client.info(self.path).url
     except pysvn.ClientError:
         pass
     else:
         self.repository = SubversionRepository(url)
示例#3
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     try:
         self.workingtree = WorkingTree.open(self.path)
     except NotBranchError:
         pass
     else:
         self.repository = BazaarRepository(self.workingtree.branch.user_url)
         #self.repository.working_copy = self
         self._current_version = self.repository._repository.revno()
示例#4
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     try:
         self.workingtree = WorkingTree.open(self.path)
     except NotBranchError:
         pass
     else:
         self.repository = BazaarRepository(
             self.workingtree.branch.user_url)
         #self.repository.working_copy = self
         self._current_version = self.repository._repository.revno()
示例#5
0
文件: _git.py 项目: dcherian/sumatra
 def __init__(self, path=None):
     check_version()
     WorkingCopy.__init__(self, path)
     self.repository = GitRepository(self.path)
示例#6
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     self.repository = MercurialRepository(self.path)
示例#7
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     self.path = os.path.realpath(path or os.getcwd())
     client = pysvn.Client()
     url = client.info(self.path).url
     self.repository = SubversionRepository(url)
示例#8
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self, path)
     self.path = findrepo(self.path)
     self.repository = MercurialRepository(self.path)
示例#9
0
文件: _git.py 项目: wd15/sumatra
 def __init__(self, path=None):
     check_version()
     WorkingCopy.__init__(self, path)
     self.path = findrepo(self.path)
     self.repository = GitRepository(self.path)
示例#10
0
 def __init__(self, path=None):
     WorkingCopy.__init__(self)
     self.path = path or os.getcwd()
     self.repository = MercurialRepository(self.path)