(Arne Babenhauserheide)
2012-10-28: harmonization between incoming and outgoing. harmonization between incoming and outgoing.
diff --git a/staticsite.py b/staticsite.py
--- a/staticsite.py
+++ b/staticsite.py
@@ -283,13 +283,18 @@ def getlocalother(repo, ui, otheruri, ot
return other
def getincoming(ui, repo, otheruri, other=None, othername=None):
- # cannot do that for ftp or freenet repos
+ """Get incoming changes."""
+ # Note: We cannot just use getcommonincoming and I do not yet know
+ # how to use its output to get good changes. TODO: do this nicer.
+ def cleanupfn():
+ """non-operation cleanup function (default)."""
+ pass
+ # cannot do that for ftp or freenet insertion uris (freenet
+ # separates insertion and retrieval by private/public key)
isftpuri = otheruri.startswith("ftp://")
isfreenetpriv = "AQECAAE/" in otheruri
if isftpuri or isfreenetpriv:
chlist = []
- def cleanupfn():
- pass
return chlist, cleanupfn, other
if not other: