/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Aaron Bentley
  • Date: 2008-02-24 17:19:56 UTC
  • mto: This revision was merged to the branch mainline in revision 3235.
  • Revision ID: aaron@aaronbentley.com-20080224171956-0qu73pf4pol2utu4
Clean error if filesystem does not support hard-links

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
    def create_hardlink(self, path, trans_id):
358
358
        """Schedule creation of a hard link"""
359
359
        name = self._limbo_name(trans_id)
360
 
        os.link(path, name)
 
360
        try:
 
361
            os.link(path, name)
 
362
        except OSError, e:
 
363
            if e.errno != errno.EPERM:
 
364
                raise
 
365
            raise errors.HardLinkNotSupported(path)
361
366
        try:
362
367
            unique_add(self._new_contents, trans_id, 'file')
363
368
        except: