##// END OF EJS Templates
dirstate: avoid unnecessary load+dump during backup...
Jun Wu -
r31208:fc57a8b9 default
parent child Browse files
Show More
@@ -1220,6 +1220,7 b' class dirstate(object):'
1220 # use '_writedirstate' instead of 'write' to write changes certainly,
1220 # use '_writedirstate' instead of 'write' to write changes certainly,
1221 # because the latter omits writing out if transaction is running.
1221 # because the latter omits writing out if transaction is running.
1222 # output file will be used to create backup of dirstate at this point.
1222 # output file will be used to create backup of dirstate at this point.
1223 if self._dirty or not self._opener.exists(filename):
1223 self._writedirstate(self._opener(filename, "w", atomictemp=True,
1224 self._writedirstate(self._opener(filename, "w", atomictemp=True,
1224 checkambig=True))
1225 checkambig=True))
1225
1226
General Comments 0
You need to be logged in to leave comments. Login now