Summary:
Before this patch we were making the assumption that evolve on means that
createmarkers is enabled, it is not always the case. This patch refines the
condition for displaying the warning message when marker creation is enabled.
Test Plan: tested on my devserver
Reviewers: pyd, rmcelroy, durham
Reviewed By: durham
Differential Revision: https://phabricator.fb.com/D2311847
Signature: t1:2311847:1438756073:a675742e9b01a2bc6d7afb5dec612f3a5f980c23
Summary: This will make it easier to move the functionality into core
Test Plan: No test before, seems simple enough
Reviewers: #sourcecontrol
Differential Revision: https://phabricator.fb.com/D2784422
Summary:
hg backups has been broken since mid october (see 2b16ffcd3 in core)
This patch fixes it and adds a test for it.
Test Plan: Adds a new test
Reviewers: #sourcecontrol, ttung
Differential Revision: https://phabricator.fb.com/D2788217
Summary:
backups: make hg backups evolve aware
With this patch: hg backups urges evolve user to look at hg reflog to recover
hidden commits. This is because evolve's commands are using obsolescence
markers to hide commits instead of stripping them.
Test Plan: Cross repo dependency, not sure how to make an automated test
Reviewers: durham, pyd
Differential Revision: https://phabricator.fb.com/D2088486
Tasks: 6534705
Summary:
hg backups would fail if it encountered a bundle whose parent wasn't present in
the repo anymore. This handles that case and prints out a message.
Test Plan:
Tried it in a large repo with lots of backup bundles, verified the
message was printed and the backups process continued on to the next one.
Reviewers: davidsp, pyd, rmcelroy, mitrandir, ericsumner, sid0
Reviewed By: sid0
Differential Revision: https://phabricator.fb.com/D1809904
Signature: t1:1809904:1422478920:90cff2103c4417e21da37e230e6058348f1c218a
Summary:
Most of our internal extensions don't have any docstringa causing hg help
to show nothing. I think this is confusing, as we teach people to use hg help.
In particular for our extensions they won't find anything on the internet
but hg help won't help either. So let's add rudimentary help texts.
Also ensure that gitnode is properly documented in hg help revset.
Test Plan:
added extensions, checked hg help and hg help extension. Also
checked hg help revset for gitnode.
Reviewers: rmcelroy, durham, sid0, akushner
Differential Revision: https://phabricator.fb.com/D1645964
Summary: Fix the import of the time package for calls to strftime() and localtime().
Test Plan:
* Edited /usr/lib/python2.6/site-packages/backups.py, cleared .pyo & .pyc, and verified
that `python -c "import backups"` didn't error out on import
Reviewers: durham
Differential Revision: https://phabricator.fb.com/D1456741
Summary:
Adds an 'hg backups' command that lists the commits in the backup
bundles, newest first. It also allows 'hg backups --recover <commit hash>' which will then
recover the commit from the appropriate backup bundle.
The default output looks like so: https://www.facebook.com/pxlcld/l0gC
Test Plan: Ran it. See the screenshot
Reviewers: mpm, sid0, dschleimer, pyd, davidsp
Differential Revision: https://phabricator.fb.com/D1183032