/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 tests/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2009-07-22 13:10:44 UTC
  • mfrom: (0.200.588 trunk)
  • mto: (0.200.597 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090722131044-r30g8w06xd8f40fl
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        self._write('\n')
122
122
        return self._counter
123
123
 
 
124
    def set_symlink(self, path, content):
 
125
        """Create or update symlink at a given path."""
 
126
        mark = self._create_blob(content)
 
127
        mode = '120000'
 
128
        self.commit_info.append('M %s :%d %s\n'
 
129
                % (mode, mark, self._encode_path(path)))
 
130
 
124
131
    def set_file(self, path, content, executable):
125
132
        """Create or update content at a given path."""
126
133
        mark = self._create_blob(content)