comparison hgext/convert/bzr.py @ 8148:adce97d28389

convert/bzr: fix symlink handling (issue1626)
author Patrick Mezard <pmezard@gmail.com>
date Fri, 24 Apr 2009 10:34:11 +0200
parents 13b36eb14324
children ddbee2d0d634 78658990c725
comparison
equal deleted inserted replaced
8126:13b36eb14324 8148:adce97d28389
190 renames[topath] = path 190 renames[topath] = path
191 changes.append((path, revid)) 191 changes.append((path, revid))
192 192
193 # populate the mode cache 193 # populate the mode cache
194 kind, executable = [e[1] for e in (kind, executable)] 194 kind, executable = [e[1] for e in (kind, executable)]
195 mode = ((executable and 'x') or (kind == 'symlink' and 's') 195 mode = ((executable and 'x') or (kind == 'symlink' and 'l')
196 or '') 196 or '')
197 self._modecache[(topath, revid)] = mode 197 self._modecache[(topath, revid)] = mode
198 changes.append((topath, revid)) 198 changes.append((topath, revid))
199 199
200 return changes, renames 200 return changes, renames