From patchwork Sun Oct 12 05:44:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06,of,17,V4] hgcia: access status fields by name rather than index From: Martin von Zweigbergk X-Patchwork-Id: 6224 Message-Id: To: mercurial-devel@selenic.com Date: Sat, 11 Oct 2014 22:44:23 -0700 # HG changeset patch # User Martin von Zweigbergk # Date 1412355099 25200 # Fri Oct 03 09:51:39 2014 -0700 # Node ID f17a69e7af06df7cd9c56eb51d0f9fef94db29e0 # Parent 853d838b996c74be6533003027c3a6e17eb52571 hgcia: access status fields by name rather than index diff --git a/hgext/hgcia.py b/hgext/hgcia.py --- a/hgext/hgcia.py +++ b/hgext/hgcia.py @@ -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)