@(cd ..; rm rcs-fast-import-$(VERS))
pychecker:
- ln -f rcs-fast-import rcs-fast-import.py
- pychecker --only --limit 50 rcs-fast-import.py
- rm -f rcs-fast-import.py
+ @echo "Expect four messages about unknown methods checkin and maketag."
+ @ln -f rcs-fast-import rcs-fast-import.py
+ @-pychecker --quiet --only --limit 50 rcs-fast-import.py
+ @rm -f rcs-fast-import.py rcs-fast-import.pyc
version:
@echo $(VERS)
self.stream.flush()
self.count = self.count + 1
return
- def __exit__(self, type, value, traceback):
- if type == KeyboardInterrupt:
+ def __exit__(self, extype, value_unused, traceback_unused):
+ if extype == KeyboardInterrupt:
self.endmsg = "interrupted"
- if type == FatalException:
+ if extype == FatalException:
self.endmsg = "aborted by error"
if self.stream:
self.stream.write("...(%2.2f sec) %s.\n" \
# __enter and __exit__ added for rcs-fast-import
def __enter__(self):
return self
- def __exit__(self, type, value, traceback):
+ def __exit__(self, type_unused, value_unused, traceback_unused):
self.cleanup()
def cleanup(self):
nuke(self.subdir(), "rcs-fast-import: cleaning up %s" % self.subdir())
def __setitem__(self, i, v):
self.events[i] = v
-def sanecheck(event, path, mode):
+def sanecheck(event_unused, path, mode):
"Sanity-check an operation to see if we can cope."
if mode == "160000":
- raise FatalException("cannot import submodule link %s", path)
+ raise FatalException("cannot import submodule link %s" % path)
elif mode == "120000":
- raise FatalException("cannot import a symlink %s", path)
+ raise FatalException("cannot import a symlink %s"% path)
if not mode[-3:] in ('644', '755'):
- raise FatalException("unknown mode %s on %s", (mode, path))
+ raise FatalException("unknown mode %s on %s" % (mode, path))
def complain(msg):
print >>sys.stderr, "rcs-fast-import:", msg