Re: [RFC/PATH 3/4] remote-hg: add version checks to the marks

2013-04-05 Thread Felipe Contreras
On Fri, Apr 5, 2013 at 6:46 AM, Jed Brown wrote: > Felipe Contreras writes: > >> @@ -76,12 +78,19 @@ class Marks: >> >> def __init__(self, path): >> self.path = path >> +self.clear() >> +self.load() >> + >> +if self.version < VERSION: >> +self.cle

Re: [RFC/PATH 3/4] remote-hg: add version checks to the marks

2013-04-05 Thread Jed Brown
Felipe Contreras writes: > @@ -76,12 +78,19 @@ class Marks: > > def __init__(self, path): > self.path = path > +self.clear() > +self.load() > + > +if self.version < VERSION: > +self.clear() It's friendlier to just upgrade the marks in-place. Th