57
57
return shelf[len(prefix):shelf.index('\n')]
60
60
shelf = self.last_shelf()
63
63
raise Exception("No shelf found in '%s'" % self.branch.base)
67
76
print >>sys.stderr, "Reapplying shelved patches",
70
79
print >>sys.stderr, ' "%s"' % message
73
82
pipe = os.popen('patch -d %s -s -p0' % self.branch.base, 'w')
77
87
if pipe.close() is not None: