예제 #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)