From 8b5e0fa8628d6035a5b5ce428972bd946876a0fc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 28 Apr 1995 21:48:16 +0000 Subject: [PATCH] added setentry() and use it in commit so CVS/Entries gets updated --- Demo/pdist/rcvs.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py index d9d1c55d624..9d14ad4943f 100755 --- a/Demo/pdist/rcvs.py +++ b/Demo/pdist/rcvs.py @@ -81,6 +81,7 @@ def action(self): def update(self): code = self.action() + if code == '=': return print code, self.file if code in ('U', 'N'): self.get() @@ -143,19 +144,23 @@ def put(self, message = ""): messages = self.proxy.put(self.file, data, message) if messages: print messages + self.setentry(self.proxy.head(self.file), self.lsum) def get(self): data = self.proxy.get(self.file) f = open(self.file, 'w') f.write(data) f.close() - self.eseen = 1 - self.esum = self.rsum + self.setentry(self.rrev, self.rsum) + + def setentry(self, erev, esum): + self.eseen = 0 # While we're hacking... + self.esum = esum self.emtime, self.ectime = os.stat(self.file)[-2:] - self.erev = self.rrev + self.erev = erev self.enew = 0 self.edeleted = 0 - # XXX anything else? + self.eseen = 1 # Done class RCVS(CVS):