Commits

Daniel Graña  committed 3e28ca8

add lodgeit pastebins support pasting to http://paste.pooco.org/ by default

  • Participants
  • Parent commits 5985db9

Comments (0)

Files changed (1)

         'expiry': 'f' if keep else 'm',
         })
 
+def _paste_lodgeit(content, syntax, private, **kw):
+    data = {'code': content, 'language': syntax or 'diff'}
+    if private: data['private'] = 'on'
+    return ('http://paste.pocoo.org/', data)
+
 def _paste(handler, content, opts):
     default_url, data = handler(content, **opts)
     url = opts['url'] or default_url
                            'username configured for Mercurial)'),
         ('k', 'keep', False, 'specify that the pastebin should keep the paste '
                              'for as long as possible (optional)'),
+        ('p', 'private', False, 'specify that the pastebin should mark a'
+                             'paste as private if possible (optional)'),
         ('',  'dry-run', False, 'do not paste to the pastebin'),
         ('',  'url', '', 'perform request against this url'),
         ('',  'httpauth', '', 'http authorization (user:pass)'),
     pastebin.dixo.net
         website: http://pastebin.dixo.net/
         supported metadata options: --keep, --user --syntax
+
+    lodgeit
+        website: http://paste.pocoo.org/
+        supported metadata options: --syntax, --private
     ''')),
 )