##// END OF EJS Templates
mq: rename status_path to statuspath
Adrian Buehlmann -
r14588:bd3d75a0 default
parent child Browse files
Show More
@@ -271,7 +271,7 b' class queue(object):'
271 271 self.series_dirty = 0
272 272 self.added = []
273 273 self.seriespath = "series"
274 self.status_path = "status"
274 self.statuspath = "status"
275 275 self.guards_path = "guards"
276 276 self.active_guards = None
277 277 self.guards_dirty = False
@@ -287,7 +287,7 b' class queue(object):'
287 287
288 288 @util.propertycache
289 289 def applied(self):
290 if os.path.exists(self.join(self.status_path)):
290 if os.path.exists(self.join(self.statuspath)):
291 291 def parselines(lines):
292 292 for l in lines:
293 293 entry = l.split(':', 1)
@@ -297,7 +297,7 b' class queue(object):'
297 297 elif l.strip():
298 298 self.ui.warn(_('malformated mq status line: %s\n') % entry)
299 299 # else we ignore empty lines
300 lines = self.opener.read(self.status_path).splitlines()
300 lines = self.opener.read(self.statuspath).splitlines()
301 301 return list(parselines(lines))
302 302 return []
303 303
@@ -496,7 +496,7 b' class queue(object):'
496 496 fp.write("%s\n" % i)
497 497 fp.close()
498 498 if self.applied_dirty:
499 write_list(map(str, self.applied), self.status_path)
499 write_list(map(str, self.applied), self.statuspath)
500 500 if self.series_dirty:
501 501 write_list(self.fullseries, self.seriespath)
502 502 if self.guards_dirty:
@@ -1593,7 +1593,7 b' class queue(object):'
1593 1593 for f in files:
1594 1594 fl = os.path.join(d, f)
1595 1595 if (fl not in self.series and
1596 fl not in (self.status_path, self.seriespath,
1596 fl not in (self.statuspath, self.seriespath,
1597 1597 self.guards_path)
1598 1598 and not fl.startswith('.')):
1599 1599 msng_list.append(fl)
@@ -2675,7 +2675,7 b' def save(ui, repo, **opts):'
2675 2675 util.copyfiles(path, newpath)
2676 2676 if opts.get('empty'):
2677 2677 try:
2678 os.unlink(q.join(q.status_path))
2678 os.unlink(q.join(q.statuspath))
2679 2679 except:
2680 2680 pass
2681 2681 return 0
General Comments 0
You need to be logged in to leave comments. Login now