~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/plugin-api.txt

  • Committer: Andrew Bennetts
  • Date: 2009-12-03 05:57:41 UTC
  • mfrom: (4857 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4869.
  • Revision ID: andrew.bennetts@canonical.com-20091203055741-vmmg0fmjgjw2pwvu
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
  # (look for a .hg directory)
130
130
  bzr_control_formats = {"Mercurial":{'.hg/': None}}
131
 
  
 
131
 
132
132
  # (look for a file called .svn/format with contents 4\n).
133
133
  bzr_control_formats = {"Subversion":{'.svn/format': '4\n'}}
134
134
 
137
137
-------
138
138
 
139
139
An example setup.py follows::
140
 
  
 
140
 
141
141
  #!/usr/bin/env python2.4
142
142
  from distutils.core import setup
143
 
  
 
143
 
144
144
  bzr_plugin_name = 'demo'
145
145
  bzr_commands = [
146
146
      'new-command',
147
147
      ]
148
 
  
 
148
 
149
149
  bzr_branch_formats = {
150
150
      "Branch label on disk\n":"demo branch",
151
151
      }
153
153
  bzr_control_formats = {"Subversion":{'.svn/format': '4\n'}}
154
154
 
155
155
  bzr_transports = ["hg+ssh://"]
156
 
  
 
156
 
157
157
  bzr_plugin_version = (1, 3, 0, 'dev', 0)
158
158
  bzr_minimum_version = (1, 0, 0)
159
 
  
 
159
 
160
160
  if __name__ == 'main':
161
161
      setup(name="Demo",
162
162
            version="1.3.0dev0",