Commit Graph

14586 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
17271f3afa hgignore: ignore MANIFEST.in (generated since 3f7ee5b12708) 2011-06-10 20:38:02 +02:00
LUO Zheng
04c821e46b bookmarks: recognize the current bookmark when the local encoding isn't UTF-8
The current bookmark is stored in bookmark.current, supposingly in UTF-8.
But the call to encoding.fromlocal() is missing, therefore Hg is not able
to recognize the current bookmark in the case that bookmark uses
characters of which the bit stream is different between local encoding
and UTF-8.
For example, the Chinese version of Windows cmd uses gbk(cp936), not UTF-8.
Therefore I won't be able to make a Chinese bookmark current.

By wrapping mark in a encoding.fromlocal() call, the problem is solved.
2011-06-08 21:25:18 +08:00
Stephen Thorne
e9d1e0bdc6 distutils: Create MANIFEST.in instead of MANIFEST in Makefile
When running 'python setup.py sdist' many files were omitted from the resulting
tarball that are required for a complete build, including the .h file for the
inotify extension due to a python2.7+ distutils bug. This would cause 'make dist'
to fail to build a correct dist on python2.7

By building a MANIFEST.in that is the same as the old MANIFEST with 'include'
at the start of each line will cause a correct MANIFEST to be built and used
by distutils.
2011-06-09 10:15:24 +10:00
Adrian Buehlmann
0ec050dc6d revert: is reverting file states, not just file contents
e.g. x bit is reverted as well

Also makes this paragraph more consistent with the preceding one,
which already uses the term "state" (not "content").
2011-06-09 18:39:14 +02:00
Matt Mackall
efecb99535 hg: change various repository() users to use peer() where appropriate
This gets all the easy cases (peers that aren't also used as repositories).
2011-06-10 11:43:38 -05:00
Matt Mackall
d049d4f6ce hg: have peer() call _lookup directly
Note that this means that peers no longer call the extension
repository setup hooks.
2011-06-10 11:43:38 -05:00
Matt Mackall
5f2e38a0df hg: add peer method 2011-06-10 11:43:38 -05:00
Peter Arrenbrecht
d836ee3cea hg: add opts argument to clone for internal remoteui 2011-06-08 18:24:33 +02:00
Peter Arrenbrecht
66eeabddd2 hg: use capable instead of capabilities 2011-06-06 21:18:35 +02:00
Matt Mackall
5f5a2076a9 fileset: basic pattern and boolean support
debugfileset can now generate file lists for things like:

"* and not hg*"
2011-06-08 13:44:41 -05:00
Thomas Arendsen Hein
cfcb12e99a tests: fix updated monotone version requirement
2f94efb209fa only updated the comment, not the actual check.
2011-06-10 16:50:45 +02:00
Matt Mackall
1b52b02896 check-code: catch misspellings of descendant
This word is fairly common in Mercurial, and easy to misspell.
2011-06-07 17:02:54 -05:00
Matt Mackall
2717156b4a revert: drop obvious paragraph about filenames 2011-06-07 16:02:51 -05:00
Matt Mackall
230c790ec3 revert: actually add pointer to backout 2011-06-07 16:01:38 -05:00
Matt Mackall
3274575aec revert: replace mention of 'roll back' with pointer to 'backout' 2011-06-07 14:54:17 -05:00
Matt Mackall
679521be35 revert: simplify description of effect of -r 2011-06-07 14:51:18 -05:00
Matt Mackall
2e7368918f revert: rearrange the date help 2011-06-07 14:49:04 -05:00
Matt Mackall
e39fc72fef revert: remove some redundancy in basic description 2011-06-07 14:47:54 -05:00
Matt Mackall
40ee99d81f revert: drop requirement to use -r to revert with two parents
This reduces documentation confusion between the need to:

a) hg revert -a -r .  (drop all changes from a merge)
b) hg up -C .         (drop the second parent entirely)

Currently revert is one of two commands (the other being tag) that
still complains about uncommitted merges, dating from its former use
of a generic defaultrev function that aborted.
2011-06-07 14:19:05 -05:00
Matt Mackall
201910f74e revert: simplify usage note
This points people looking for other commands to the right place with
a minimum of verbiage.
2011-06-07 14:18:39 -05:00
Matt Mackall
310bb08a92 revert: rewrite help summary
New users have a tendency to mistake 'revert' as the command to use to
check out old revisions. They also occasionally mistake revert for a
generalized undo (compare rollback).

This version intentionally aims to avoid mentioning 'earlier' and thus
intentionally no longer alludes to the (secondary) -r behavior (which
in fact is not actually limited to 'earlier').

Instead, we mention checkout state, to convey that we can
restore things to the way they were when checked out.
2011-06-06 17:38:32 -05:00
Peter Arrenbrecht
67e220a8d7 sshrepo: fix addchangegroup's signature
Make it mirror the usage found in localrepo.push. This should only
affect pushes to pre-unbundle ssh servers.
2011-06-06 21:02:48 +02:00
Matt Mackall
c347d649b8 subrepo: be more careful with deletions of .hgsub and .hgsubstate (issue2844)
We shouldn't try to process subrepos if .hgsub isn't present and we
should remove .hgsubstate if .hgsub is marked for removal.
2011-06-06 15:17:40 -05:00
Patrick Mezard
7acb34dda5 patch: dot not ignore hunk of files marked as 'deleted'
git 'deleted' flag was processed unconditionnally and the file removed even if
the related hunk was not matching.
2011-06-05 22:26:01 +02:00
Patrick Mezard
f3d2dd1ca2 patch: fix patchmeta/hunk synchronization in iterhunks()
Synchronizing on bfile does not work on file removal where bfile is /dev/null.
We match items on afile or bfile instead. The incorrect code makes iterhunks()
to emit patchmeta and hunks separately in some cases. This is currently hidden
by applydiff() being too tolerant when processing patchmeta, and will be fixed
later.
2011-06-05 22:24:19 +02:00
Patrick Mezard
fc7fde3949 patch: remove unnecessary exists() call in selectfile() 2011-06-05 22:24:11 +02:00
Patrick Mezard
6ea3f75e49 import: deprecate --base
This option was a convenient hack introduced in Mercurial early days which
unfortunately survived until now.
2011-06-05 22:24:02 +02:00
Patrick Mezard
62588fedca patch: remove redundant islink() call 2011-06-05 13:27:06 +02:00
Yuya Nishihara
5c2b085d52 extensions: make disabled()/disabledext() load prebuilt index if available
__index__ contains a dict of {name: desc} of all extensions.
2011-06-04 20:19:30 +09:00
Yuya Nishihara
64bae20381 setup: add command to generate index of extensions
It generates prebuilt index of all extensions, which will be used by
frozen exe when running 'hg help extensions'.

Now py2exe invokes this command automatically.
2011-06-04 20:11:10 +09:00
Yuya Nishihara
e900ecac29 extensions: update doc of enabled() and disabled() according to 96b1098c07ee 2011-06-04 20:01:01 +09:00
Patrick Mezard
f99a853422 localrepo: add savecommitmessage() to write last-message.txt 2011-06-04 15:56:48 +02:00
Patrick Mezard
97b28ace29 memctx: simplify constructor 2011-06-04 15:20:49 +02:00
Matt Mackall
86143efd7d scmutil: improve path calculation for install-relative RC files (issue2841)
This code was ugly and might do the wrong thing with symlinks.
2011-06-03 15:08:08 -05:00
Adrian Buehlmann
ff008eb648 prepush: show details about new remote heads with --verbose
previously, this info was only shown with --debug

Note that the new remote heads are only shown if the command aborts,
that is, they are *not* shown if --force was specified.

See also change 914ebeb62db8.
2011-06-03 13:10:22 +02:00
Adrian Buehlmann
1c143846c7 prepush: print short hash of first new head in abort message
and don't mention the branch if it's the default branch.

OLD:

  $ hg push ../a
  pushing to ../a
  searching for changes
  abort: push creates new remote heads on branch 'default'!
  (you should pull and merge or use push -f to force)

NEW:

  $ hg push ../a
  pushing to ../a
  searching for changes
  abort: push creates new remote head 1e108cc5548c!
  (you should pull and merge or use push -f to force)

This helps to identify which local head is causing troubles.

See also change 914ebeb62db8.
2011-06-03 12:16:17 +02:00
Adrian Buehlmann
a879df5001 prepush: eliminate 'if branch'
branch is always set anyway

No change in program behavior.
2011-06-03 11:26:43 +02:00
Sune Foldager
7db447dd4c revlog: bail out earlier in group when we have no chunks 2011-06-03 20:32:54 +02:00
Sune Foldager
5d8acb706f localrepo: simplify file bundling code and fix progress bug
Progress for files was off by one, and the code was rather hackish.
2011-06-03 20:23:32 +02:00
Sune Foldager
307e81bf40 localrepo: use list comprehension instead of generators
The lists in question are iterated and kept in memory further down the code
path anyway, and this simplifies things.
2011-06-03 20:15:06 +02:00
Sune Foldager
e4e3ee35de localrepo: add total to changeset progress in bundle/push 2011-06-03 20:12:37 +02:00
Martin Geisler
94d9d879d7 statichttprepo: use in-place difference for shorter line 2011-06-03 20:08:26 +02:00
Adrian Buehlmann
7062c2db6e workingctx: eliminate remove function
Inlining it into it's last remaining call place in cmdutil.copy.

Note that cmdutil.copy is called with the wlock already held, so no additional
locking is needed to call util.unlinkpath.

We do not need to wrap the util.unlinkpath call into a try block, because
at that point we already know whether abssrc exists or not -- thanks to the
preceding util.copyfile call. Adding a new local 'srcexists' in cmdutil.copy
for that purpose.
2011-06-02 00:33:33 +02:00
Adrian Buehlmann
b117e44867 test-copy2: add case for moving a missing file 2011-06-02 19:43:17 +02:00
Idan Kamara
2b3f15b0fa color: check if ui is already a subclass of colorui before wrapping it
since it's possible to reuse the ui object (see 6772a32edec7)
between dispatch calls, the ui might have been wrapped already.

we could probably move this test up a bit but leaving it here
allows updates to take effect by extstyles() and configstyles().
2011-06-02 00:43:34 +03:00
Idan Kamara
02f21a70dc util: add helper function isatty(fd) to check for tty-ness 2011-06-02 00:43:34 +03:00
Steven Brown
ef568e7358 web: prevent TypeError thrown when using the diffstat templates
Remove the lambda used to wrap webutil.diffstat because:
- functions passed to the templater must accept keyword arguments
- webutil.diffstat is a generator, so already calculates the diffstat lazily

This reverts the changes made to a4067e29e29d after it was submitted to the
mailing list but before it was queued.
2011-06-02 18:52:31 +08:00
Matt Mackall
6bf6135996 fileset: fix long line 2011-06-02 11:27:40 -05:00
Matt Mackall
eef554a6f1 COPYING: refresh with current address from fsf.org 2011-06-02 11:17:02 -05:00
Matt Mackall
fd0ca6b6e5 filesets: introduce basic fileset expression parser 2011-06-01 19:12:18 -05:00