示例#1
0
 def vcdiff(self, dictionary, target):
     return sh.vcdiff(
         'delta',
         '-dictionary',
         dictionary.name,
         '-target',
         target.name).stdout
示例#2
0
 def un_vcdiff(self, dictionary, patch):
     fd = self.write(patch)
     content = sh.vcdiff(
         'patch',
         '-dictionary', dictionary.name,
         '-delta', fd.name).stdout
     os.remove(fd.name)
     return content