From 9fe74034505ddd59d9cf3836187a24de3c9a4cf7 Mon Sep 17 00:00:00 2001 From: lnu Date: Sat, 14 May 2005 07:17:40 +0000 Subject: fixed a problem with updated items git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@25 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/cache.rb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lib/feed2imap') diff --git a/lib/feed2imap/cache.rb b/lib/feed2imap/cache.rb index 48913f0..e270f05 100644 --- a/lib/feed2imap/cache.rb +++ b/lib/feed2imap/cache.rb @@ -113,6 +113,8 @@ class CachedChannel # @nbnewitems is set by get_new_items, and is used to limit the number # of (old) items serialized. + UPDATEDDEBUG = false + # Returns the really new items amongst items def get_new_items(items) # save number of new items @@ -122,6 +124,13 @@ class CachedChannel updateditems = [] @itemstemp = @items items.each { |i| i.cacheditem ||= CachedItem::new(i) } + # debug : dump interesting info to stdout. + if UPDATEDDEBUG + puts "-------Items downloaded :----------" + items.each { |i| puts "#{i.cacheditem.to_s}" } + puts "-------Items already there :----------" + @items.each { |i| puts "#{i.to_s}" } + end items.each do |i| found = false # Try to find a perfect match @@ -146,7 +155,7 @@ class CachedChannel found = true # let's put j in front of itemstemp @itemstemp.delete(j) - @itemstemp.unshift(j) + @itemstemp.unshift(i.cacheditem) break end end @@ -197,4 +206,8 @@ class CachedItem def create_index @index = ItemCache.getindex end + + def to_s + "\"#{@title}\" #{@link} #{@hash}" + end end -- cgit v1.2.3-70-g09d2 t' value='search'/>
path: root/xdiff.h (unfollow)
Commit message (Expand)AuthorFilesLines
2007-05-13Add commitdiff between commit and each of it's parentLars Hjemli5-10/+63
2007-05-13Add graphical diffstat to commit viewLars Hjemli5-33/+130
2007-05-13Add max-commit-count parameter to cgitrcLars Hjemli4-2/+10
2007-05-13Show number of changed lines in log viewLars Hjemli1-1/+11
2007-05-13Simplify ui-diff.c using the new file-level diff interfaceLars Hjemli1-86/+2
2007-05-13Add standard interface for file diff functionsLars Hjemli2-0/+86
2007-05-13Show number of changed files in log viewLars Hjemli1-2/+15
2007-05-13Use standard tree-diff function when showing diffstat for single commitLars Hjemli1-51/+15
2007-05-13Add shared diff-handling functionsLars Hjemli2-2/+50
2007-05-12css: fix bad rendering in Internet ExplorerLars Hjemli1-2/+7
2007-05-11Add links to enable downloading of tagged blobsLars Hjemli2-9/+85
2007-05-11Makefile: add support for building w.o. preinstalled gitLars Hjemli1-1/+13
2007-05-11Tag release v0.3v0.3Lars Hjemli1-1/+1
2007-05-11Update README with submodule build infoLars Hjemli1-13/+39
2007-05-11Add submodule links in tree listingLars Hjemli6-12/+27
2007-05-11Add submodules.sh and use it during buildsLars Hjemli3-13/+222
2007-05-11Added git as a submoduleLars Hjemli2-1/+1
2007-05-09Add support for downloading single blobsLars Hjemli5-3/+47
2007-05-08ui-view: show pathname if specified in querystringLars Hjemli3-5/+10
2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli9-837/+50
2007-02-21Layout updateLars Hjemli9-32/+127
2007-02-08Make snapshot feature configurableLars Hjemli5-6/+22
2007-02-08Add support for snapshotsLars Hjemli8-8/+153
2007-02-05cgit v0.2v0.2Lars Hjemli1-1/+1
2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli2-15/+37
2007-02-04Update cgitrc templateLars Hjemli1-21/+32
2007-02-04Add support for lightweight tagsLars Hjemli2-19/+37
2007-02-04Read repo-info from /etc/cgitrcLars Hjemli5-55/+120
2007-02-04Do not die if tag has no messageLars Hjemli1-2/+2
2007-02-03Fix search for non-virtual urlsLars Hjemli1-0/+6
2007-01-28Update README with install/config informationLars Hjemli1-24/+28