Adrian Buehlmann <adrian@cadifra.com> [Sat, 16 Apr 2011 20:08:43 +0200] rev 13947
checkwinfilename: use %r in format string
Steven Brown <StevenGBrown@gmail.com> [Sun, 17 Apr 2011 02:15:47 +0800] rev 13946
tests: new test cases for the unbundlehash capability
Adrian Buehlmann <adrian@cadifra.com> [Fri, 15 Apr 2011 16:15:32 +0200] rev 13945
copy: do not copy file if name is disallowed anyway
Adrian Buehlmann <adrian@cadifra.com> [Fri, 15 Apr 2011 16:15:30 +0200] rev 13944
util: new function checkfilename
checkfilename checks for restrictions on filenames imposed by Mercurial
itself, irrespective of on what platform it is run.
Adrian Buehlmann <adrian@cadifra.com> [Fri, 15 Apr 2011 16:15:28 +0200] rev 13943
opener: use %r in format string for abort
Shuhei Takahashi <takahashi.shuhei@gmail.com> [Sat, 16 Apr 2011 01:05:56 +0900] rev 13942
wireproto: allow unbundle with hashed heads parameter (
issue2126)
Current wire protocol of unbundle sends the list of all heads in the remote
repository to avoid race condition. This causes "URL too long" error on HTTP
server when the repository has many heads.
This change allows clients to send SHA1 hash of sorted head hashes instead.
Also, this introduces "unbundlehash" capability to inform them that the server
accepts hashed heads parameter.
Matt Mackall <mpm@selenic.com> [Fri, 15 Apr 2011 23:46:59 -0500] rev 13941
merge with stable
Matt Mackall <mpm@selenic.com> [Fri, 15 Apr 2011 23:45:41 -0500] rev 13940
encoding: avoid localstr when a string can be encoded losslessly (
issue2763)
localstr's hash method exists to prevent bogus matching on lossy local
encodings. For instance, we don't want 'caf?' to match 'café' in an
ASCII locale.
But when café can be losslessly encoded in the local charset, we can
simply use a normal string and avoid the hashing trick.
This avoids using localstr's hash method, which would prevent a match between
Matt Mackall <mpm@selenic.com> [Fri, 15 Apr 2011 20:35:59 -0500] rev 13939
merge with stable
Idan Kamara <idankk86@gmail.com> [Fri, 15 Apr 2011 20:07:44 +0300] rev 13938
revset: optimize stringset when subset == entire repo
if range(len(repo)) is passed to stringset and x is a valid rev
(checked before) then x is guaranteed to be in subset, we can check
for that by comparing the lengths of the sets
Idan Kamara <idankk86@gmail.com> [Fri, 15 Apr 2011 16:35:32 +0300] rev 13937
help/revset: fix grammar
timeless <timeless@mozdev.org> [Thu, 14 Apr 2011 10:00:15 +0200] rev 13936
qrecord: provide help when mq is not enabled
timeless <timeless@mozdev.org> [Thu, 14 Apr 2011 10:00:14 +0200] rev 13935
record: improve help test coverage
Adrian Buehlmann <adrian@cadifra.com> [Fri, 15 Apr 2011 10:56:26 +0200] rev 13934
paper: preserve whitespace on description instead of adding breaks
This preserves the indentation of text in the changeset description.
This is useful for example for descriptions containing command line
use case examples like:
$ hg -q heads
13934:
648a834cca14
13912:
71ea5b2b9517
Without this patch, such space-char indented text was just left aligned.
Augie Fackler <durin42@gmail.com> [Wed, 13 Apr 2011 13:06:35 -0500] rev 13933
compact style: show bookmarks in the same manner as tags
Augie Fackler <durin42@gmail.com> [Wed, 13 Apr 2011 12:30:41 -0500] rev 13932
revsets: preserve ordering with the or operator
This is valuable because now revsets like 'bookmarks() or tip' will
always show tip after bookmarks unless tip was itself a bookmark. This
is a somewhat contrived example, but this behavior is useful for
"where am I" type aliases that use log and revsets.
Md. O. Shayan <mdoshayan@gmail.com> [Wed, 13 Apr 2011 07:40:24 +0530] rev 13931
hgweb: set minimum number of revision to display to 1 when revcount is 0
When revcount goes to 0 nothing is displayed in hgweb. This patch sets revcount to max(revcount, 1).
Matt Mackall <mpm@selenic.com> [Wed, 13 Apr 2011 12:57:24 -0500] rev 13930
zeroconf: clean up naked exceptions
Idan Kamara <idankk86@gmail.com> [Mon, 11 Apr 2011 21:44:22 +0300] rev 13929
localrepo: don't add deleted files to list of modified/added files (
issue2761)
If a file is deleted (rm, not 'hg rm') from the working dir
an attempt to run 'hg diff -r X', with the file being present in X will
cause an abort.
We didn't check if the file has been deleted from the working dir
and later on tried to open it to compare with the one from X, causing the abort.
This fix adds that check. Consequently, no output will be returned.
Adrian Buehlmann <adrian@cadifra.com> [Mon, 11 Apr 2011 10:06:57 +0200] rev 13928
path_auditor: eliminate local function 'check' in __call__
Augie Fackler <durin42@gmail.com> [Mon, 11 Apr 2011 07:34:40 -0500] rev 13927
subrepo: trailing whitespace cleanup
Adrian Buehlmann <adrian@cadifra.com> [Sun, 10 Apr 2011 19:31:49 +0200] rev 13926
util: move checkosfilename call from path_auditor to opener
path_auditor is used for checking patterns too, but a pattern is not a valid
filename.
This patch fixes
98ee3dd5bab4, which introduced the bug:
$ hg log -l3 glob:**.py
abort: filename contains '*', which is reserved on Windows: mercurial\**.py
Idan Kamara <idankk86@gmail.com> [Sun, 10 Apr 2011 11:30:53 +0300] rev 13925
tests: add tests for non-existant branch/tag/bookmark
Yuya Nishihara <yuya@tcha.org> [Sun, 10 Apr 2011 10:01:42 +0900] rev 13924
hgweb: add bookmarks listing to summary page of gitweb/monoblue styles
Yuya Nishihara <yuya@tcha.org> [Sun, 10 Apr 2011 10:01:39 +0900] rev 13923
hgweb: remove useless notip handling from bookmarks listing
Yuya Nishihara <yuya@tcha.org> [Sun, 10 Apr 2011 10:01:37 +0900] rev 13922
hgweb: sort bookmarks in the same manner as console command
Yuya Nishihara <yuya@tcha.org> [Sun, 10 Apr 2011 06:37:20 +0900] rev 13921
hgweb: add bookmarks listing to raw style with test case
Md. O. Shayan <mdoshayan@gmail.com> [Sat, 09 Apr 2011 23:13:17 +0530] rev 13920
grep: don't print data from binary files for matches (
issue2614)
Idan Kamara <idankk86@gmail.com> [Sat, 09 Apr 2011 23:53:23 +0300] rev 13919
color: reset win32 console color in a finally block
Matt Mackall <mpm@selenic.com> [Sat, 09 Apr 2011 15:52:19 -0500] rev 13918
tests: better output on timeouts
Formerly, timeouts would generate huge scrollback-destroying diffs and
weird -15 return codes in the summary. Now we simply report "timed
out".
John Mulligan <phlogistonjohn@asynchrono.us> [Mon, 07 Feb 2011 16:37:03 -0500] rev 13917
acl: add branch tests for the current behavior of acl extension
Adds simple tests for the acl.allow.branches and acl.deny.branches
configuration options of the acl extension.
Adrian Buehlmann <adrian@cadifra.com> [Wed, 06 Apr 2011 18:09:43 +0200] rev 13916
path_auditor: check filenames for basic platform validity (
issue2755)
Example (on Windows):
$ hg parents
$ hg manifest tip
con.xml
$ hg update
abort: filename contains 'con', which is reserved on Windows: con.xml
Before this patch, update produced (as explained in
issue2755):
$ hg update
abort: No usable temporary filename found
I've added the new function checkwinfilename to util.py and not to windows.py,
so that we can later call it when running on posix platforms too, for when we
decide to implement a (configurable) warning message on 'hg add'.
As per this patch, checkwinfilename is currently only used when running
on Windwows.
path_auditor calls checkosfilename, which is a NOP on posix and an alias for
checkwinfilename on Windows.
Idan Kamara <idankk86@gmail.com> [Fri, 08 Apr 2011 17:47:58 +0300] rev 13915
revset: rearrange code so functions are sorted alphabetically
Idan Kamara <idankk86@gmail.com> [Thu, 07 Apr 2011 19:24:16 +0300] rev 13914
revset: abort when tag or bookmark doesn't exist
Matt Mackall <mpm@selenic.com> [Thu, 07 Apr 2011 15:08:15 -0500] rev 13913
merge with stable
Thomas Arendsen Hein <thomas@intevation.de> [Thu, 07 Apr 2011 12:33:47 +0200] rev 13912
subrepo: prevent url normalization from removing // in ssh paths (
issue2556)
Idan Kamara <idankk86@gmail.com> [Thu, 07 Apr 2011 17:57:38 +0300] rev 13911
bookmarks: change error messages to match those given by 'hg tag' commands
Matt Mackall <mpm@selenic.com> [Thu, 07 Apr 2011 14:43:19 -0500] rev 13910
audit: improve nested repo message
Idan Kamara <idankk86@gmail.com> [Thu, 07 Apr 2011 17:16:17 +0300] rev 13909
tags: remove another check for valid nodes
see
1aea86673dee
Idan Kamara <idankk86@gmail.com> [Thu, 07 Apr 2011 16:20:40 +0300] rev 13908
revset: replace for-loop with list comprehension
Matt Mackall <mpm@selenic.com> [Thu, 07 Apr 2011 09:47:30 -0500] rev 13907
subrepo: fix up svn test output
Martin Geisler <mg@aragost.com> [Thu, 07 Apr 2011 11:40:54 +0200] rev 13906
merge with stable
Md. O. Shayan <mdoshayan@gmail.com> [Thu, 07 Apr 2011 13:23:07 +0530] rev 13905
hgweb: fix inconsistant display of graphlog (
issue1706)
Martin Geisler <mg@aragost.com> [Thu, 07 Apr 2011 11:17:55 +0200] rev 13904
hgrc.5: drop 'hgext.' prefix when talking about extensions
The first paragraph apply to all extensions, not just those in hgext.
The second paragraph can just use the simpler form to load mq.
Matt Mackall <mpm@selenic.com> [Wed, 06 Apr 2011 15:15:06 -0500] rev 13903
merge with crew
Matt Mackall <mpm@selenic.com> [Wed, 06 Apr 2011 15:14:51 -0500] rev 13902
merge with stable
Matt Mackall <mpm@selenic.com> [Wed, 06 Apr 2011 15:13:49 -0500] rev 13901
merge with crew
Matt Mackall <mpm@selenic.com> [Wed, 06 Apr 2011 15:10:47 -0500] rev 13900
url: use a regex to hide unsupported ssh passwords (
issue2754)
Martin Geisler <mg@aragost.com> [Wed, 06 Apr 2011 16:21:12 +0200] rev 13899
commit: note when files are missing
Before, you could experience the following strange interaction:
$ hg commit
nothing changed
$ hg merge
abort: outstanding uncommitted changes
which confused at least one user in #mercurial.
Martin Geisler <mg@aragost.com> [Wed, 06 Apr 2011 15:26:49 +0200] rev 13898
relink: correct unusual indentation
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Apr 2011 12:48:59 +0200] rev 13897
hg: make parseurl() consistently return normalised path
Before this the path was only normalised when a fragment was used.
Jim Hague <jim.hague@acm.org> [Wed, 06 Apr 2011 11:30:08 +0100] rev 13896
bugzilla: more documentation formatting fixups
Correct typo in numbering list of access methods.
Convert a section reference and a template parameter reference into
literal text, for consistency with other use.
Matt Mackall <mpm@selenic.com> [Tue, 05 Apr 2011 16:11:40 -0500] rev 13895
merge with stable
Stefano Tortarolo <stefano.tortarolo@gmail.com> [Sun, 27 Mar 2011 13:34:20 +0200] rev 13894
rebase: don't mark file as removed if missing in parent's manifest (
issue2725)
Idan Kamara <idankk86@gmail.com> [Mon, 04 Apr 2011 23:43:22 +0300] rev 13893
tags: no need to check for valid nodes
_findtags in localrepo checks that nodes exist in the revlog so we
can't get a LookupError here.
The output of 'hg tags' stays the same since tags to unknown nodes
didn't get printed before anyway due to
ae3089cefaab.
Idan Kamara <idankk86@gmail.com> [Mon, 04 Apr 2011 22:51:10 +0300] rev 13892
localrepo: ignore tags to unknown nodes (
issue2750)
Arne Babenhauserheide <bab@draketo.de> [Tue, 05 Apr 2011 19:48:44 +0200] rev 13891
merge: added info that hg help merge-tools shows the options for --tool
Adrian Buehlmann <adrian@cadifra.com> [Tue, 05 Apr 2011 11:55:52 +0200] rev 13890
util: move checklink() to posix.py and return False on Windows
Python added support for Windows 6.0 (Vista) symbolic links in 3.2 [1], but
even these symbolic links aren't what we can expect from a canonical
symbolic link, since creation requires SeCreateSymbolicLinkPrivilege,
which typically only admins have.
So we can safely assume that we don't have symbolic links on Windows.
[1] http://docs.python.org/py3k/library/os.html#os.symlink
Yun Lee <yunlee.bj@gmail.com> [Tue, 05 Apr 2011 16:55:47 +0800] rev 13889
util: make 'hg log -d --2' abort (
issue2734)
Yun Lee <yunlee.bj@gmail.com> [Tue, 05 Apr 2011 12:40:47 +0800] rev 13888
help: sort help topics to make the output more readable (
issue2751)