Skip to content

rmax-contrib/hg-paste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

-- markdown --

hg-paste

hg-paste adds an hg paste command to Mercurial which can send diffs to various pastebin websites for easy sharing.

It was inspired by Pocoo's hgpaste extension, but is designed to work with public pastebin websites instead of private installations of LodgeIt.

Installing

Clone the repository:

hg clone http://bitbucket.org/sjl/hg-paste/

Edit the [extensions] section in your ~/.hgrc file:

[extensions]
paste = (path to)/hg-paste/paste.py

Using the Command

To paste a diff of all uncommitted changes in the working directory:

hg paste

To paste the changes that revision REV made:

hg paste -r REV

To paste the changes between revisions REV1 and REV2:

hg paste -r REV1:REV2

If any files are specified only those files will be included in the diffs.

Several options can be used to specify more metadata about the paste:

hg paste --user Steve --title 'Progress on feature X' --keep

The pastebin website to use can be specified with --dest. Currently only dpaste.com and dpaste.org are supported.

Questions, Comments, Suggestions

If you find any bugs, please create an issue in the issue tracker.

If you want to contribute (support for more pastebin websites would be great), fork the repository on BitBucket and send a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages