Commits

Anonymous committed 24907ed

It's possible to disable copy-to-clipboard now.

Comments (0)

Files changed (1)

     else:
         url = '%sshow/%s/' % (server, rv)
         ui.status(url + '\n')
-        copy_to_clipboard(url)
+        if not opts['nopaste']:
+            copy_to_clipboard(url)
 
 cmdtable = {
     'paste':
         (paste,
-         [('r', 'rev', '', 'paste specified revision(s)')
-          ] + commands.diffopts,
+         [('r', 'rev', '', 'paste specified revision(s)'),
+          ('n', 'nopaste', None, 'do not copy to clipboard')] + commands.diffopts,
          'hg paste [-r REV | FILE...]')
 }