hgext/hgcia.py
changeset 22917 1c38b4063586
parent 20667 e96e9f805c19
child 24306 6ddc86eedc3b
--- a/hgext/hgcia.py	Sat Oct 04 21:05:41 2014 -0700
+++ b/hgext/hgcia.py	Fri Oct 03 09:51:39 2014 -0700
@@ -82,14 +82,14 @@
         if url and url[-1] == '/':
             url = url[:-1]
         elems = []
-        for path in f[0]:
+        for path in f.modified:
             uri = '%s/diff/%s/%s' % (url, short(n), path)
             elems.append(self.fileelem(path, url and uri, 'modify'))
-        for path in f[1]:
+        for path in f.added:
             # TODO: copy/rename ?
             uri = '%s/file/%s/%s' % (url, short(n), path)
             elems.append(self.fileelem(path, url and uri, 'add'))
-        for path in f[2]:
+        for path in f.removed:
             elems.append(self.fileelem(path, '', 'remove'))
 
         return '\n'.join(elems)