A Scalable, User-Friendly Source Control System.
Go to file
2015-11-05 14:45:10 -08:00
copytrace copytrace: 'hg pull' pulls the move data from a local sql database 2015-11-05 14:29:22 -08:00
crecord crecord: update to latest default 2015-03-06 12:59:11 -08:00
scripts add hg-new-workdir 2015-05-13 13:15:59 -07:00
tests test-filldb.t: SQL selects don't have a stable ordering 2015-11-05 14:45:10 -08:00
.hgignore Use setuptools if available. 2015-10-22 08:02:30 -07:00
automv.py Adding automatically 'move metadata' if a move is detected 2015-09-30 09:28:40 -07:00
backups.py backups: make hg backups evolve aware 2015-05-20 12:29:09 -07:00
catnotate.py catnotate: add whole extension 2015-10-16 02:45:27 -07:00
chistedit.py chistedit: language improvements 2014-11-07 09:34:29 -08:00
commitextras.py extras: add commitextras extension 2015-04-27 20:20:48 -07:00
COPYING Initial commit with extensions and readme 2014-06-02 12:54:54 -07:00
dbg.py dbg: an extension for a quick hg REPL 2015-02-24 10:50:23 -08:00
dirsync.py dirsync: add extension for keeping directories synchronized 2015-10-30 15:37:17 -07:00
fbamend.py fbamend: fix --logfile for hg amend 2015-10-27 14:37:20 -07:00
fbconduit.py fix breakages due to fbconduit api changes regarding missing revs 2015-08-10 21:22:21 -07:00
fbhistedit.py fbhistedit: use user shell in histedit exec command 2015-09-10 22:53:28 -07:00
githelp.py Added difftool command to githelp. 2015-10-14 12:25:14 -07:00
gitlookup.py gitlookup: change back to b2x 2015-04-22 14:49:20 -07:00
gitrevset.py gitrevset: fix broken test caused by core's commit 48d6be2f1632 2015-05-07 17:46:30 -07:00
inhibitwarn.py inhibitwarn: improve the warning message 2015-08-05 10:42:58 -07:00
Makefile Initial commit: fbamend, smartlog 2013-06-20 12:16:36 -07:00
mergedriver.py initial mergedriver implementation 2015-10-15 00:37:45 -07:00
morestatus.py morestatus: make morestatus not rely on mergestate for merge state 2015-10-27 14:48:34 -07:00
perftweaks.py perftweaks: fix case collision check 2015-10-07 12:29:56 -07:00
phabdiff.py Added phabdiff template mapping 2014-10-16 17:43:58 -07:00
phrevset.py phrevset: fix because of changes in core 2015-05-12 11:14:44 -07:00
pushrebase.py pushrebase: use 'onto' instead of 'force' to do force pushes 2015-10-29 15:42:54 -07:00
pushvars.py Fix pushvars with remotenames 2015-07-17 15:47:30 -07:00
rage.py update rage to work with new bookmarks api 2015-08-03 16:25:42 -07:00
README.md Merge fbonly into default 2015-03-08 12:22:25 -07:00
reflog.py reflog: fix devel-warn abotu dirstate.write 2015-10-26 17:51:36 -07:00
reset.py typo-fix 2015-10-12 19:53:04 -07:00
setup.py added automv in setup.py 2015-11-03 09:30:18 -08:00
simplecache.py simplecache: move memcache prefix to mcget/set 2015-06-15 17:19:08 -07:00
smartlog.py Fix smartlog error on readonly file systems 2015-09-20 14:39:13 -07:00
sparse.py sparse: make sparse extension work on non-sparse repos 2015-07-24 13:03:09 -07:00
statprof.py statprof: fix writing data to bad home dirs 2015-09-07 17:32:12 -07:00
tweakdefaults.py tweakdefaults: use falsy rather than empty string checks 2015-10-28 07:41:52 -07:00
upgradegeneraldelta.py upgradegeneraldelta: only upgrade before pulls 2014-12-18 12:43:32 -08:00
writecg2.py writecg2: disable cg2 bundle writing, and force bundle v1 2015-10-28 12:41:36 -07:00

hg-experimental

This is a collection of proof-of-concept Mercurial extensions written at Facebook. While they are all in basic use, they are considered experimental, are unsupported, and may or may not receive updates in the future. We're making them open source as examples of some better workflows we've been experimenting with.

Note that there will be extensions included here that only work with Facebook's infrastructure; they are included to give you an idea of how we integrate mercurial with our workflows.

smartlog

An extension that adds the 'hg smartlog' command. It prints graph log output containing only the commits relevant to yourself. Shows your bookmarks, the @ or master bookmark, and any draft commits without bookmarks that you've made within the past 2 weeks. Any commits in the graph that are skipped are represented by '...'.

We recommend also having an 'hg sl' alias that gives more concise output:

alias.sl=smartlog --template "{shortest(node)}  {author|user}  {bookmarks % '{ifeq(bookmark, current, label(\"yellow\", \" {bookmark}*\"), label(\"green\", \" {bookmark}\"))}'} {ifeq(branch, 'default', '', label(\"bold\", branch))}\n{desc|firstline}\n\n"

githelp

An extension that adds the 'hg githelp' command. It translates Git commands into Mercurial commands. Example:

$ hg githelp -- git rebase origin/master
  hg rebase -d master

$ hg githelp -- reset --hard HEAD^
  hg strip -r .

So it acts as a useful cheat sheet tool for people moving from Git to Mercurial.

backups

An extension that adds the 'hg backups' command. 'hg backups' prints a list of recently deleted commits (by reading your .hg/strip-backups directory) and allows you to recover a commit by doing 'hg backups --recover '. It prints the missing commits in reverse chronological order, and acts as a pseudo-replacement for Git's reflog.

fbamend

An extension that adds the 'hg amend --rebase' command. When working with a stack of commits, it's currently impossible to amend a commit in the middle of the stack. This extension enables that ability, adds a 'hg amend' command that invokes 'hg commit --amend', and adds a --rebase flag to 'hg amend --rebase' that rebase all the children of the commit onto the newly amended version.

If 'hg amend' is run on a commit in the middle of a stack without using --rebase, the amend succeeds and the old version of the commit is left behind with a marker bookmark on it 'bookmarkname(preamend)'. The user can then run 'hg amend --fixup' to post-humously rebase the children onto the new version of the commit.

chistedit

An interactive ncurses interface to histedit.

NOTE: This requires python-curses installed and Mercurial's histedit extension enabled.

This extensions allows you to interactively move around changesets or change the action to perform while keeping track of possible conflicts.

upgradegeneraldelta

Upgrades manifests to generaldelta in-place, without needing to reclone.

Contributing

Patches are welcome as pull requests, though they will be collapsed and rebased to maintain a linear history.

We (Facebook) have to ask for a "Contributor License Agreement" from someone who sends in a patch or code that we want to include in the codebase. This is a legal requirement; a similar situation applies to Apache and other ASF projects.

If we ask you to fill out a CLA we'll direct you to our online CLA page where you can complete it easily. We use the same form as the Apache CLA so that friction is minimal.

License

These extensions are made available under the terms of the GNU General Public License version 2, or any later version. See the COPYING file that accompanies this distribution for the full text of the license.