Exemplo n.º 1
0
 def __init__(self, *args, **kw):
   WorkingCopy.__init__(self, *args, **kw)
   out = self._git('rev-parse', '--show-toplevel', '--show-prefix',
     stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
   if not out:
     raise NotAWorkingCopyError(self.working_copy)
   self.toplevel, self.prefix = out.split('\n')[:2]
Exemplo n.º 2
0
 def __init__(self, *args, **kw):
   WorkingCopy.__init__(self, *args, **kw)
   out = self._git('rev-parse', '--show-toplevel', '--show-prefix',
     stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
   if not out:
     raise NotAWorkingCopyError(self.working_copy)
   self.toplevel, self.prefix = out.split('\n')[:2]
Exemplo n.º 3
0
 def __init__(self, *args, **kw):
   WorkingCopy.__init__(self, *args, **kw)
   try:
     path = self.working_copy
   except AttributeError:
     return
   try:
     self.getRevision()
   except (ClientError, KeyError):
     raise NotAWorkingCopyError(path)
Exemplo n.º 4
0
 def __init__(self, *args, **kw):
   WorkingCopy.__init__(self, *args, **kw)
   try:
     path = self.working_copy
   except AttributeError:
     return
   try:
     self.getRevision()
   except (ClientError, KeyError):
     raise NotAWorkingCopyError(path)
Exemplo n.º 5
0
 def __init__(self, path):
   WorkingCopy.__init__(self, path)
   if path and not os.path.exists(os.path.join(self.working_copy, '.svn')):
     raise NotAWorkingCopyError(self.working_copy)
Exemplo n.º 6
0
 def __init__(self, path):
     WorkingCopy.__init__(self, path)
     if path and not os.path.exists(os.path.join(self.working_copy,
                                                 '.svn')):
         raise NotAWorkingCopyError(self.working_copy)