summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-05-01 20:22:01 (GMT)
committerGuido van Rossum <guido@python.org>1995-05-01 20:22:01 (GMT)
commit2f7ef91a5ef88192220d74635fb950f505fedb2b (patch)
tree90ce417607d1961a7536fcb86b1d3a0acf4e1480
parentec8cfd4089262b7829b065cb6d68793f6cf87f1a (diff)
downloadcpython-2f7ef91a5ef88192220d74635fb950f505fedb2b.zip
cpython-2f7ef91a5ef88192220d74635fb950f505fedb2b.tar.gz
cpython-2f7ef91a5ef88192220d74635fb950f505fedb2b.tar.bz2
eremoved should be edeleted, tests for lseen/rseen should be lsum/rsum
-rwxr-xr-xDemo/pdist/rcvs.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py
index aeff6c8..016aa1e 100755
--- a/Demo/pdist/rcvs.py
+++ b/Demo/pdist/rcvs.py
@@ -33,39 +33,41 @@ class MyFile(File):
'r' -- get rid of entry
'c' -- create entry
'u' -- update entry
+
+ (and probably others :-)
"""
if not self.lseen:
self.getlocal()
if not self.rseen:
self.getremote()
if not self.eseen:
- if not self.lseen:
- if not self.rseen: return '0' # Never heard of
+ if not self.lsum:
+ if not self.rsum: return '0' # Never heard of
else:
return 'N' # New remotely
- else: # self.lseen
- if not self.rseen: return '?' # Local only
+ else: # self.lsum
+ if not self.rsum: return '?' # Local only
# Local and remote, but no entry
if self.lsum == self.rsum:
return 'c' # Restore entry only
else: return 'C' # Real conflict
else: # self.eseen
- if not self.lseen:
- if self.eremoved:
- if self.rseen: return 'R' # Removed
+ if not self.lsum:
+ if self.edeleted:
+ if self.rsum: return 'R' # Removed
else: return 'r' # Get rid of entry
- else: # not self.eremoved
- if self.rseen:
+ else: # not self.edeleted
+ if self.rsum:
print "warning:",
print self.file,
print "was lost"
return 'U'
else: return 'r' # Get rid of entry
- else: # self.lseen
- if not self.rseen:
+ else: # self.lsum
+ if not self.rsum:
if self.enew: return 'A' # New locally
else: return 'D' # Deleted remotely
- else: # self.rseen
+ else: # self.rsum
if self.enew:
if self.lsum == self.rsum:
return 'u'