##// END OF EJS Templates
requires: use atomictemp=True when writing .hg/requires...
Martin von Zweigbergk -
r40669:acd17caa default
parent child Browse files
Show More
@@ -1166,7 +1166,7 b' def dirstatecopy(ui, repo, wctx, src, ds'
1166 wctx.copy(origsrc, dst)
1166 wctx.copy(origsrc, dst)
1167
1167
1168 def writerequires(opener, requirements):
1168 def writerequires(opener, requirements):
1169 with opener('requires', 'w') as fp:
1169 with opener('requires', 'w', atomictemp=True) as fp:
1170 for r in sorted(requirements):
1170 for r in sorted(requirements):
1171 fp.write("%s\n" % r)
1171 fp.write("%s\n" % r)
1172
1172
General Comments 0
You need to be logged in to leave comments. Login now