Example #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]
Example #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]
Example #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)
Example #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)
Example #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)
Example #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)