Pierre-Yves David <pierre-yves.david@ens-lyon.org> [Mon, 10 Sep 2012 23:44:24 +0200] rev 17472
amend: wrap all commit operations in a single transaction
This allows proper recovery of an interrupted amend process.
No changes are made to the logic besides:
- indent operations into a single try-except clause,
- some comment and code wrapping to 80 chars,
- strip logic should not be contained in the transaction and is extracted from
the main code.
Pierre-Yves David <pierre-yves.david@ens-lyon.org> [Sat, 25 Aug 2012 15:37:28 +0200] rev 17471
amend: lock the repository during the whole process
Without this changes another writer can lock the repository in the middle the
amend process. The resulting mess can be pretty ugly.
Bryan O'Sullivan <bryano@fb.com> [Mon, 10 Sep 2012 14:08:10 -0700] rev 17470
Merge with crew
Pierre-Yves David <pierre-yves.david@logilab.fr> [Tue, 28 Aug 2012 20:52:04 +0200] rev 17469
obsolete: introduce caches for all meaningful sets
This changeset introduces caches on the `obsstore` that keeps track of sets of
revisions meaningful for obsolescence related logics. For now they are:
- obsolete: changesets used as precursors (and not public),
- extinct: obsolete changesets with osbolete descendants only,
- unstable: non obsolete changesets with obsolete ancestors.
The cache is accessed using the `getobscache(repo, '<set-name>')` function which
builds the cache on demand. The `clearobscaches(repo)` function takes care of
clearing the caches if any.
Caches are cleared when one of these events happens:
- a new marker is added,
- a new changeset is added,
- some changesets are made public,
- some public changesets are demoted to draft or secret.
Declaration of more sets is made easy because we will have to handle at least
two other "troubles" (latecomer and conflicting).
Caches are now used by revset and changectx. It is usually not much more
expensive to compute the whole set than to check the property of a few elements.
The performance boost is welcome in case we apply obsolescence logic on a lot of
revisions. This makes the feature usable!
Patrick Mezard <patrick@mezard.eu> [Sun, 09 Sep 2012 12:35:06 +0200] rev 17468
Merge with stable
Patrick Mezard <patrick@mezard.eu> [Sun, 09 Sep 2012 12:31:14 +0200] rev 17467
test-http-branchmap: enable on Windows
Tests using "hg serve --daemon" are currently disabled on Windows for
lack of proper kill utility. The one shipped with MinGW operates on
internal process identifiers and not on the ones recorded by hg serve.
Fortunately we can replace most of them by calls to killdaemons.py.
This patch is a proof of concept on how to run these tests on Windows.
The plan is:
- Check test-http-branchmap.t does not fail/hang on the buildbot
- Convert all kill utility calls to killdaemons.py calls.
- Add a rule in check-code.py to forbid kill calls, or ignore the
remaining ones (test-hup.t, etc.).
- Possibly drop the 'serve' rule from hghave.
The:
listening at http://*:$HGPORT1/
line does not appear on Windows because the detached process can no
longer write on its parent streams. Grepping hg serve stdout directly
causes the parent process to never return and hangs the test. This is a
bug, but I have no simple solution and prefer to pay this small price
and enable hg serve tests on Windows.
Patrick Mezard <patrick@mezard.eu> [Mon, 20 Aug 2012 22:36:51 +0200] rev 17466
killdaemons: take file argument explicitely
It makes it easier to use as a generic replacement for kill utility,
mostly for Windows tests.
Patrick Mezard <patrick@mezard.eu> [Sun, 19 Aug 2012 18:06:15 +0200] rev 17465
killdaemons: add windows implementation
Patrick Mezard <patrick@mezard.eu> [Sun, 19 Aug 2012 16:41:09 +0200] rev 17464
run-tests: do not duplicate killdaemons() code
Kevin Bullock <kbullock@ringworld.org> [Fri, 31 Aug 2012 13:17:16 -0500] rev 17463
bash_completion: add rebase rev completion
Jim Hague <jim.hague@acm.org> [Mon, 03 Sep 2012 17:25:50 +0100] rev 17462
tests: correct quoting of double quotes in here documents used to write hooks
Some shells, e.g. ksh89, will emit \" in a here document as ",
while others will emit \". To be sure of getting \", we specify \\".
This gets test-commit-amend.t and test-largefiles.t working on AIX.
Pierre-Yves David <pierre-yves.david@logilab.fr> [Thu, 30 Aug 2012 16:47:08 +0200] rev 17461
amend: preserve phase of amended revision (
issue3602)
New commit from the amend process were created without any phase contraint. If
the amended changeset had a different phase from it's parent, the phases data
were lost.
The changeset ensure the new commit are created in the same phase than the
original changeset.
Ankur Dahiya <ankurd@fb.com> [Mon, 27 Aug 2012 09:37:49 -0700] rev 17460
color: enabled color support for export command (
issue1507)
The export command didn't output the diffs in color, even when color support
was enabled. This patch fixes that by making the export command use the default
ui.write method, instead of directly manipulating the ui.fout file object.
Also added a test case to verify color output to test-export.t.
Adrian Buehlmann <adrian@cadifra.com> [Thu, 06 Sep 2012 22:51:32 +0200] rev 17459
test-hybridencode: extensions are replicated on hashed paths
unfortunately, this is done unbounded, so the length of the hashed path
is not really limited
Bryan O'Sullivan <bryano@fb.com> [Thu, 06 Sep 2012 10:57:49 -0700] rev 17458
Merge with crew-stable
Adrian Buehlmann <adrian@cadifra.com> [Thu, 06 Sep 2012 19:53:23 +0200] rev 17457
test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Yuya Nishihara <yuya@tcha.org> [Wed, 05 Sep 2012 23:59:27 +0900] rev 17456
hgweb: respond 403 forbidden for ssl required error
It's preferable to report "ssl required" as an error, so that the client
can detect error and exit with 255. Currently hg exits with 1, which is
"nothing to push."
Yuya Nishihara <yuya@tcha.org> [Wed, 05 Sep 2012 23:58:43 +0900] rev 17455
test-push-http: include exit status of hg push
Takumi IINO <trot.thunder@gmail.com> [Fri, 07 Sep 2012 00:42:42 +0900] rev 17454
help: fix literal block syntax
Adrian Buehlmann <adrian@cadifra.com> [Thu, 06 Sep 2012 15:53:59 +0200] rev 17453
test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com> [Thu, 06 Sep 2012 15:04:07 +0200] rev 17452
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Patrick Mezard <patrick@mezard.eu> [Wed, 05 Sep 2012 22:01:09 +0200] rev 17451
histedit: fix unused variable warnings spotted by pyflakes
Patrick Mezard <patrick@mezard.eu> [Fri, 03 Aug 2012 17:26:58 +0200] rev 17450
test-convert-mtn.t: generate files in binary mode
Patrick Mezard <patrick@mezard.eu> [Fri, 03 Aug 2012 17:26:30 +0200] rev 17449
test-convert-mtn.t: use #if to set mtndir to the correct value
Monotone store directory name is not the same on Windows and Unix.
Patrick Mezard <patrick@mezard.eu> [Fri, 03 Aug 2012 17:56:34 +0200] rev 17448
test-convert-darcs.t: fix elementtree test
On OSX, the test succeeds because darcs aborts when trying to convert
the dummy repository, and the test only grep for the output. On Windows,
the darcs call succeeds for some reason but darcs fails to emit any output,
which is not a valid XML output, which causes a traceback including the
ElementTree string matched by the check, and makes a false positive.
Check with a real repository instead. The darcs upgrade test is moved
at the end so we can use our handmade darcs repository for the test.
Patrick Mezard <patrick@mezard.eu> [Fri, 03 Aug 2012 17:59:21 +0200] rev 17447
test-convert-svn-branches.t: fix self call failure on Windows
The error message is preceded by a cmd.exe error.
Sumeet <sumeet@fb.com> [Mon, 27 Aug 2012 12:41:10 -0700] rev 17446
record: checks for valid username before starting recording process (
issue3456)
Adrian Buehlmann <adrian@cadifra.com> [Wed, 05 Sep 2012 14:08:31 +0200] rev 17445
test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com> [Wed, 05 Sep 2012 13:57:58 +0200] rev 17444
test-hybridencode: remove x00 character case
precludes implementation in C
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 15:50:42 -0700] rev 17443
Merge with crew-stable
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 15:50:15 -0700] rev 17442
Merge
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 15:46:04 -0700] rev 17441
subrepo: encode unicode path names (
issue3610)
Subversion 1.7 changes its XML output to include an explicit encoding tag:
<?xml version="1.0" encoding="UTF-8"?>
This triggers xml.dom.minidom to always return unicode strings, causing
other parts of the code to explode.
We unconditionally encode path names before handing them back, which
works with both str (actually a no-op) and unicode values.
Adrian Buehlmann <adrian@cadifra.com> [Fri, 31 Aug 2012 13:08:11 +0200] rev 17440
test-hybridencode: add more testcases for hashed paths
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 13:50:50 -0700] rev 17439
Merge with crew-stable
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 13:50:22 -0700] rev 17438
Merge
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 13:49:39 -0700] rev 17437
Merge with stable
Bryan O'Sullivan <bryano@fb.com> [Tue, 04 Sep 2012 13:49:10 -0700] rev 17436
Merge
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Fri, 31 Aug 2012 23:42:02 +0200] rev 17435
merge with crew-stable
Pierre-Yves David <pierre-yves.david@logilab.fr> [Thu, 30 Aug 2012 22:13:24 +0200] rev 17434
test: remove invalid hidden rev in graphlog test
The hidden set of revision can not have descendant outside this set.
The extension is patched to raise and exception when this happen.
Patrick Mezard <patrick@mezard.eu> [Wed, 29 Aug 2012 21:26:39 +0200] rev 17433
Merge with stable
Adrian Buehlmann <adrian@cadifra.com> [Wed, 29 Aug 2012 11:48:36 +0200] rev 17432
test-hybridencode: more testcases
Mads Kiilerich <mads@kiilerich.com> [Wed, 29 Aug 2012 01:24:57 +0200] rev 17431
remove template-vars.txt - it is outdated and neither usable nor necessary
Mads Kiilerich <mads@kiilerich.com> [Mon, 27 Aug 2012 23:17:21 +0200] rev 17430
largefiles: minor code cleanup
Fix:
* unnecessary use of map and lambda
* comment instead of readable code
* comparing None with 0
* and...or anti-pattern for 'ternary if' with very clever handling of i=None
Mads Kiilerich <mads@kiilerich.com> [Mon, 27 Aug 2012 23:16:22 +0200] rev 17429
declare local constants instead of using magic values and comments
Mads Kiilerich <mads@kiilerich.com> [Mon, 27 Aug 2012 23:14:27 +0200] rev 17428
avoid using abbreviations that look like spelling errors
Mads Kiilerich <mads@kiilerich.com> [Tue, 21 Aug 2012 02:41:20 +0200] rev 17427
improve some comments and docstrings, fixing issues found when spell checking
Mads Kiilerich <mads@kiilerich.com> [Tue, 21 Aug 2012 02:41:20 +0200] rev 17426
delete some dead comments and docstrings
Mads Kiilerich <mads@kiilerich.com> [Wed, 15 Aug 2012 22:39:18 +0200] rev 17425
fix wording and not-completely-trivial spelling errors and bad docstrings