Пример #1
0
 def test_failurecode(self):
     try:
         svnmerge.launch(self.cmd*10)
     except svnmerge.LaunchError, (ret, cmd, out):
         self.assertNotEqual(ret, 0)
         self.assertNotEqual(ret, None)
         self.assert_(out)
         self.assertEqual(cmd, self.cmd*10)
Пример #2
0
 def test_failurecode(self):
     try:
         svnmerge.launch(self.cmd*10)
     except svnmerge.LaunchError, (ret, cmd, out):
         self.assertNotEqual(ret, 0)
         self.assertNotEqual(ret, None)
         self.assert_(out)
         self.assertEqual(cmd, self.cmd*10)
Пример #3
0
 def test_basic(self):
     out = svnmerge.launch(self.cmd)
     self.assert_(out)
     for o in out:
         self.assertEqual(o[-1], "\n")
Пример #4
0
 def getBlockedProperty(self):
     out = svnmerge.launch("svn pg %s ." % svnmerge.opts["block-prop"])
     if len(out) == 0:
         return None
     else:
         return out[0].strip()
Пример #5
0
 def multilaunch(self, cmds):
     for cmd in cmds.split("\n"):
         cmd = cmd.strip()
         svnmerge.launch(cmd % self.command_dict())
Пример #6
0
 def launch(self, cmd, **kwargs):
     try:
         out = svnmerge.launch(cmd, split_lines=False)
     except svnmerge.LaunchError, (ret, cmd, out):
         return self._parseoutput(ret, out, **kwargs)
Пример #7
0
 def test_basic(self):
     out = svnmerge.launch(self.cmd)
     self.assert_(out)
     for o in out:
         self.assertEqual(o[-1], "\n")
Пример #8
0
 def getBlockedProperty(self):
     out = svnmerge.launch("svn pg %s ." % svnmerge.opts["block-prop"])
     if len(out) == 0:
         return None
     else:
         return out[0].strip()
Пример #9
0
 def multilaunch(self, cmds):
     for cmd in cmds.split("\n"):
         cmd = cmd.strip()
         if len(cmd) > 0:
             svnmerge.launch(cmd % self.command_dict())
Пример #10
0
 def launch(self, cmd, **kwargs):
     try:
         out = svnmerge.launch(cmd, split_lines=False)
     except svnmerge.LaunchError, (ret, cmd, out):
         return self._parseoutput(ret, out, **kwargs)