Commit Graph

16 Commits

Author SHA1 Message Date
timeless@gmail.com
cd35432d91 spelling: fix numerous spelling errors 2016-04-04 12:48:01 -07:00
Laurent Charignon
f60df3cc2c backups: show warning message for createmarkers even when evolve is not enabled
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
2016-01-11 07:41:42 -08:00
Laurent Charignon
bc3dcc3726 cleanup: make backups pass check-code
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
2015-12-29 11:34:30 -08:00
Laurent Charignon
e8aa27731b backups: fix compatibility issues with core
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
2015-12-29 11:34:30 -08:00
Laurent Charignon
25d0314a5b backups: make hg backups evolve aware
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
2015-05-20 12:29:09 -07:00
Durham Goode
6c8677d403 Merge with default 2015-01-28 13:17:21 -08:00
Durham Goode
8687288433 backups: make warning message clearer 2015-01-28 13:16:22 -08:00
Durham Goode
fc5e9c6dcd Merge with default 2015-01-28 13:03:33 -08:00
Durham Goode
578b5611e2 backups: handle bundles without parents
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
2015-01-28 13:00:36 -08:00
David Soria Parra
cddc80fd98 fb-hgext: add docstrings for extensions
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
2014-10-28 23:06:11 -07:00
Andy Pincombe
8b485aaed4 Fix time import in backups
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
2014-07-24 15:03:53 -07:00
Durham Goode
99d6595d48 Fix phases during hg backups --recover
We weren't locking the repo when running unbundle during hg backups --recover.
This caused the phase roots to not actually be written to disk.
2014-07-22 13:11:09 -07:00
Durham Goode
7321a5e343 Initial commit with extensions and readme 2014-06-02 12:54:54 -07:00
Pierre-Yves David
f7a8458257 backups: compatibility with Mercurial 3.0 2014-04-25 11:21:34 -07:00
Durham Goode
8bd405d4df Fix hg backups message 2014-03-06 10:36:25 -08:00
Durham Goode
81ca4d4e44 Add hg backups command for easier backup bundle discovery
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
2014-02-20 13:34:57 -08:00