Mercurial > hg
comparison hgext/convert/git.py @ 5121:ef338e34a906
convert: look up copies in getchanges instead of getcommit
svn: defer path expansion until getchanges to reduce latency, as well as memory
usage when converting incrementally.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 05 Aug 2007 12:03:27 -0700 |
parents | 28b23b9073a8 |
children | 7d3dcdd92a1a |
comparison
equal
deleted
inserted
replaced
5120:514c06098e9c | 5121:ef338e34a906 |
---|---|
46 h = m[3] | 46 h = m[3] |
47 p = (m[1] == "100755") | 47 p = (m[1] == "100755") |
48 s = (m[1] == "120000") | 48 s = (m[1] == "120000") |
49 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" | 49 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" |
50 changes.append((f, h)) | 50 changes.append((f, h)) |
51 return changes | 51 return (changes, {}) |
52 | 52 |
53 def getcommit(self, version): | 53 def getcommit(self, version): |
54 c = self.catfile(version, "commit") # read the commit hash | 54 c = self.catfile(version, "commit") # read the commit hash |
55 end = c.find("\n\n") | 55 end = c.find("\n\n") |
56 message = c[end+2:] | 56 message = c[end+2:] |