##// END OF EJS Templates
Fix a bug in patches() if there's not text and no patch
mpm@selenic.com -
r75:b942bbe4 default
parent child Browse files
Show More
@@ -71,6 +71,9 b' def patches(a, bins):'
71 bl = len(a) + pl
71 bl = len(a) + pl
72 tl = bl + bl + pl # enough for the patches and two working texts
72 tl = bl + bl + pl # enough for the patches and two working texts
73 b1, b2 = 0, bl
73 b1, b2 = 0, bl
74
75 if not tl: return a
76
74 m = mmap.mmap(devzero.fileno(), tl, mmap.MAP_PRIVATE)
77 m = mmap.mmap(devzero.fileno(), tl, mmap.MAP_PRIVATE)
75
78
76 # load our original text
79 # load our original text
General Comments 0
You need to be logged in to leave comments. Login now