Пример #1
0
 def runCommand(self,
                cfg,
                argSet,
                args,
                profile=False,
                callback=None,
                repos=None):
     args = args[1:]
     if argSet or len(args) > 2: return self.usage()
     args[0] = repos
     checkin.factory(*args[1:])
Пример #2
0
 def setFactoryFlag(factoryName, targetDir=None):
     """
     Sets the factory type for a checkout.
     @param factoryName: name of factory or empty string to reset
     @type factoryName: string
     @param targetDir: directory containing package; default (C{None})
     is the current directory
     @type targetDir: string
     """
     if not factoryName:
         # convert from None to checkin's accepted ''
         factoryName = ''
     checkin.factory(factoryName, targetDir=targetDir)
Пример #3
0
 def setFactoryFlag(factoryName, targetDir=None):
     """
     Sets the factory type for a checkout.
     @param factoryName: name of factory or empty string to reset
     @type factoryName: string
     @param targetDir: directory containing package; default (C{None})
     is the current directory
     @type targetDir: string
     """
     if not factoryName:
         # convert from None to checkin's accepted ''
         factoryName = ''
     checkin.factory(factoryName, targetDir=targetDir)
Пример #4
0
 def runCommand(self, cfg, argSet, args, profile = False,
                callback = None, repos = None):
     args = args[1:]
     if argSet or len(args) > 2: return self.usage()
     args[0] = repos
     checkin.factory(*args[1:])