A Scalable, User-Friendly Source Control System.
Go to file
Ryan McElroy 59ab0f3dbb merge Makefile contents
Test Plan: make local

Reviewers: #mercurial, ttung, simonfar

Reviewed By: simonfar

Subscribers: simonfar, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3777379

Tasks: 12855049

Signature: t1:3777379:1472217558:ec79a66e76854d1d80f6b17c82be6d597e7884cc
2016-08-26 06:27:59 -07:00
cfastmanifest [fastmanifest] fix unhexlify 2016-08-02 15:35:49 -07:00
contrib debian: mark us as breaking hg older than 3.5, and enhancing mercurial 2015-09-14 12:37:07 -04:00
fastannotate fastannotate: implement a simple revision map 2016-08-23 16:24:13 +01:00
fastmanifest fastmanifest: support tree manifests in hybrid manifest 2016-08-24 11:31:06 -07:00
hgext3rd check-code fixes 2016-08-25 09:04:43 -07:00
infinitepush infinitepush: sample implementation 2016-08-26 06:09:01 -07:00
linelog linelogcli: add new command getalllines 2016-08-15 12:47:14 +01:00
phabricator conduit: stop using httplib 2016-07-04 03:00:37 -07:00
remotefilelog fix crash in "hg pull" when remotefilelog not enabled 2016-08-23 14:14:42 -07:00
rflroot merge Makefile contents 2016-08-26 06:27:59 -07:00
scripts scm-prompt: use double square brackets everywhere 2016-07-22 16:31:51 -07:00
sqldirstate check-code fixes 2016-08-25 09:04:43 -07:00
tests merge in remotefilelog repo 2016-08-26 06:27:25 -07:00
.editorconfig Add editorconfig 2016-04-20 03:05:42 -07:00
.hgignore move remotefilelog root files to rflroot/ 2016-08-26 06:08:52 -07:00
cfastmanifest.c [cfastmanifest] add PyObject_Del to dealloc method 2016-08-09 13:47:49 -07:00
COPYING move remotefilelog root files to rflroot/ 2016-08-26 06:08:52 -07:00
Makefile merge Makefile contents 2016-08-26 06:27:59 -07:00
README.md move remotefilelog root files to rflroot/ 2016-08-26 06:08:52 -07:00
setup.py move remotefilelog root files to rflroot/ 2016-08-26 06:08:52 -07:00
statprof.py Fix clock now 2016-08-25 12:07:11 -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.

uncommit

Adds a 'hg uncommit' command, which undoes the effect of a local commit. This allows you to either undo a mistake, or remove files from a commit which weren't intended for it.

By default it uncommits all the files, and completely hides the changeset. However, if filenames are specified then it will create a new changeset excluding those files and leave the files in a dirty state in the working dir. In all cases, files are left unchanged in the working dir, so other local changes are unaffected.

Uncommit does work in the middle of a stack of changes (possibly creating a new head), but cannot be used to undo a merge changeset.

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.