Sun Aug 3 15:00:34 UTC 2008 Alberto Bertogli <albertito@gmail.com>
* Use _darcs/patches instead of _darcs/inventory
In darcs 2, there is no _darcs/inventory, so use the patches directory to find
out the last modification time of the repository.
Thanks to Patrick Waugh (ptwaugh@gmail.com) for providing (and testing) this
fix.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2013-07-18 20:19:52.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2013-07-18 20:19:52.000000000 +0000
@@ -543,7 +543,7 @@
sys.stdout = self
return 0
- inv = config.repodir + '/_darcs/inventory'
+ inv = config.repodir + '/_darcs/patches'
cache_lastmod = os.stat(fname).st_mtime
repo_lastmod = os.stat(inv).st_mtime
dw_lastmod = os.stat(sys.argv[0]).st_mtime
@@ -1931,7 +1931,7 @@
def do_atom():
print "Content-type: application/atom+xml; charset=utf-8\n"
print '<?xml version="1.0" encoding="utf-8"?>'
- inv = config.repodir + '/_darcs/inventory'
+ inv = config.repodir + '/_darcs/patches'
repo_lastmod = os.stat(inv).st_mtime
str_lastmod = time.strftime(iso_datetime,
time.localtime(repo_lastmod))