Commit Graph

3144 Commits

Author SHA1 Message Date
Cédric Duval
b91592cdc4 mq: don't mention qinit as a "common task"
Without -c, it is a no-op (the queue is implicitly initialized by all
relevant commands if needed), and queue repositories with -c are an
advanced usage of mq, and not otherwise required.
2010-03-14 19:17:06 +01:00
Yuya Nishihara
a626e66806 hgweb: fix broken URLs of RSS/Atom feeds (issue1772)
This fixes doubled URL, e.g. http://example.orghttp://example.org/...,
which appears on RSS/Atom feeds served by hgwebdir.

It splits baseurl to update SERVER_NAME, SERVER_PORT and SCRIPT_NAME,
according to RFC 3875.

Updated the test output since SCRIPT_NAME becomes not to contain
http://host:port part.
2010-03-11 00:28:27 +09:00
Mathieu Clabaut
14e6714bd1 convert: teach cvsps to handle . repository (issue1649)
For a CVS repository checked out with "cvs co .", the prefix used to strip of
what we get from CVS was previously erroneously set to "repopath/.".
We now prevent the dot to be added.

Test folded in test-convert-cvs and simplified by Patrick Mézard
<pmezard@gmail.com>.
2010-03-09 12:09:57 +01:00
Greg Ward
3789bab61d rebase: always check if rebasing onto an applied mq patch.
Previously, it only checked for an mq patch if the user explicitly
passed -d/--dest.  But rebasing onto an mq patch is a bad idea
regardless of how we determine the rebase destination.
2010-03-02 15:08:43 -05:00
Brodie Rao
1ca609f2f6 test-extension: fix disabled extension tests for run-tests.py --local
One test that requires inserting a broken extension into hgext does this
by modifying PYTHONPATH. This doesn't work when run with --local because
the 'hg' script being used is in the same directory as the local hgext.

Instead of modifying PYTHONPATH, a secondary extension is enabled using
--config that inserts the dummy hgext at the beginning of sys.path,
before the script's path.
2010-03-05 17:38:02 -05:00
Mads Kiilerich
badb17240e test-merge-default and check-code.py: No "export x=x" in sh 2010-03-08 03:07:35 +01:00
Dirkjan Ochtman
0fd3b50af0 tests: use external coverage, mandate newer version
This removes the option for including the stdlib in coverage reports.
2010-03-11 15:32:24 +01:00
Greg Ward
8894f43741 rebase: improve help text
- add a paragraph about default dest/source changesets
- option help: say "changeset" not "revision"
- option help: explain -b/--base better
- clarify that -a/--abort and -c/--continue are different from the
  other options
2010-03-09 21:53:16 -05:00
timeless
3e27f0b8c3 commands: document and test hg clone update priority 2010-03-11 10:06:01 +02:00
Benoit Boissinot
65a86e1b8e bundle: fix bundle generation for empty changegroup 2010-03-09 20:38:23 +01:00
Patrick Mezard
e349da1f07 Merge with crew-stable 2010-03-13 20:02:46 +01:00
Benoit Boissinot
d6eff743cd merge with stable 2010-03-13 17:02:41 +01:00
Edouard Gomez
2b89d37c12 subrepo: print subrepo pulling URL 2010-03-12 01:23:35 +01:00
Martin Geisler
42e9951ca6 Merge with stable 2010-03-12 00:50:41 +01:00
David Wolever
d9d667c78e archive: autodetect archive type by extension (issue2058) 2010-03-11 15:52:17 +01:00
Dirkjan Ochtman
1a28729342 merge with stable 2010-03-11 15:38:35 +01:00
Greg Ward
2eaaaf372f rebase: improve help text
- add a paragraph about default dest/source changesets
- option help: say "changeset" not "revision"
- option help: explain -b/--base better
- clarify that -a/--abort and -c/--continue are different from the
  other options
2010-03-09 21:53:16 -05:00
Thomas Arendsen Hein
45c7d43a59 test-serve: Show if port config and option are correctly used
this will break in c28f6e4ccb71
2010-03-10 22:05:41 +01:00
Sune Foldager
e360c8edcb rebase: improve output of hg pull --rebase (issue2072) 2010-03-10 12:38:33 +01:00
Yuya Nishihara
d958341146 branch: help misuse of hg branch to switch branches
Maybe beginners tend to use 'hg branch EXISTING_BRANCH' instead of
'hg update EXISTING_BRANCH' as me.
If so, let's help them to use 'update'.

Also removed '(use --force to override)' because it can mislead them.
2010-01-12 22:49:10 +09:00
Sune Foldager
12da123bee mq: correct test output 2010-03-05 12:27:23 +01:00
Sune Foldager
533ddd28b6 mq: disallow : in patch names (issue2065) 2010-03-05 10:49:56 +01:00
Sune Foldager
868689388b mq: disallow # (and : on Windows) in patch names (issue2065) 2010-03-04 14:23:54 +01:00
Steve Borho
b62e9661c6 test-fetch: use relative URL to avoid echoing TMP path 2010-03-03 17:37:50 -06:00
Sune Foldager
ff514439e6 fetch: fix newheads calculation (issue2047) 2010-03-03 22:32:51 +01:00
Thomas Arendsen Hein
20c8c9dcb9 Make annotate --follow an alias for -f/--file to behave like in older versions
Since 461b5218840e annotate follows copies/renames by default, but the output
of e.g. "annotate --follow --number" should not change without some
deprecation time.
2010-03-03 22:04:59 +01:00
Adrian Buehlmann
48a03e4f27 store: only add new entries to the fncache file
Newly added fncache entries were not added to the in-memory cache,
making it possible for 'hg convert' to cause duplicates in
.hg/store/fncache.

Duplicates in the fncache file are harmless, but excessive numbers
of duplicates from large converted repositories may slow down
execution speed considerably.
2010-03-03 14:50:35 +01:00
Thomas Arendsen Hein
1c68d90cec Updated test output of test-convert-baz after bfc8a096e3db 2010-03-03 16:00:02 +01:00
Yuya Nishihara
56bfdbef10 ui: ignore ui.logtemplate and ui.style when HGPLAIN is set
HGPLAIN should suppress them because they change Mercurial's default
output.
2010-03-03 00:12:05 +09:00
Martin Geisler
2fb134d88e tests: update output to match 64ba5d075415 2010-03-01 22:44:02 +01:00
Benoit Boissinot
c967347014 strip: invalidate all caches after stripping (fixes issue1951)
test thanks to Stefano Tortarolo
2010-02-21 20:59:27 +01:00
Benoit Boissinot
1c71747d8e fix test output changed by 9bf9be28a923 2010-02-25 14:35:21 +01:00
Sune Foldager
155fe1239e httprepo: normalize output from unbundle with ssh
Lines from the remote are prefixed with 'remote: ' and written
locally using ui.status, similar to what sshrepo does.
2010-02-24 12:35:26 -05:00
Wagner Bruna
65dc62eef8 commands: clarify --config syntax 2010-02-24 11:04:56 -03:00
timeless
f739d87132 commands: correct diff -c explanation 2010-02-23 06:42:10 +01:00
Patrick Mezard
dede247fea patch: fix patching with fuzz and eol normalization 2010-02-22 22:55:58 +01:00
Saint Germain
a779bc7bd1 subrepo: Update .hgsubstate in case of deleted subrepo
When a subrepo is deleted from .hgsub, it also needs to be removed from
.hgsubstate. Previous code was updating .hgsubstate only in case of newly or
modified subrepo.
2010-02-22 01:19:59 +01:00
timeless
bb1742e284 commands: mention diff -c 2010-02-21 01:21:17 +02:00
Brodie Rao
df04f13391 ui: unset ui.slash when HGPLAIN is set 2010-02-18 16:51:39 -05:00
Brodie Rao
9dbf7b06a9 ui: suppress aliases when HGPLAIN is set 2010-02-18 16:50:49 -05:00
Greg Ward
cb143d442a merge: fix --preview to show all nodes that will be merged (issue2043).
Formerly, it omitted nodes that were not descendants of the least
common ancestor of the two merge parents, even though those nodes
contribute to the merge.  The new algorithm uses revlog.findmissing()
instead of ancestor() + nodesbetween().
2010-02-15 15:25:29 -05:00
Greg Ward
cc17369c25 test-merge-default: make content of test repo clearer.
Makes it easier to understand and modify the test.
(issue2043).
2010-02-15 15:07:21 -05:00
Brendan Cully
de7c8ccdfb import: if in doubt, consume stream until start of diff
This prevents a header-like line in the message body from causing a spurious split.
2010-02-18 10:46:01 -08:00
Christian Ebert
abe6b27034 keyword: mark improved demo commit message for translation
s/config/configuration/

Inside the quoted command put the message in single quotes in case
the translation contains apostrophes.
2010-02-18 05:55:05 +01:00
Sune Foldager
2369132b4b run commit and update hooks after command completion (issue1827)
Previously, the working dir state hadn't been written when these
hooks were invoked, so external commands couldn't see all changes.
2010-02-17 15:43:21 +01:00
Ronny Pfannschmidt
d170b686d2 filelog: sort meta entries, ensure deterministic order 2010-02-16 21:04:04 +01:00
Alexander Solovyov
f11ee5abee expand paths to local repository or bundle in appropriate classes
This avoids problem with unexpanded paths when it's not possible to
expand it at higher level (for example, if file:~/path/ is supplied as
path in schemes).
2009-12-07 12:31:45 +02:00
Benoit Boissinot
213d94e037 bundle: exclude csets given in --base, unless they are in --rev (issue1910)
Thanks Jesse Glick for the first version of this patch.
2009-11-16 16:10:05 -05:00
Martin Geisler
eeedee37da Merge with default 2010-02-15 00:14:16 +01:00
Brodie Rao
459206adee color: don't crash on invalid status codes (issue2036)
If an unknown file with a newline appears in the status output, color
shouldn't raise a KeyError trying to parse second line in the filename.
2010-02-14 17:08:52 -05:00
Martin Geisler
5da26fd349 test-interhg: test the extension 2010-02-14 20:28:49 +01:00
David Soria Parra
11f271739c subrepo: make sure that the source path is stripped
Test by Patrick Mézard <pmezard@gmail.com>
2010-02-09 18:32:57 +01:00
Brodie Rao
48b845981a ui: add HGPLAIN environment variable for easier scripting
If HGPLAIN is set, the following settings are ignored when read from
hgrc files:

- ui.debug
- ui.fallbackencoding
- ui.quiet
- ui.traceback
- ui.verbose
- defaults.*

Localization is also disabled.

Equivalent options set via command line are honored.
2010-02-07 14:56:18 +01:00
Matt Mackall
cde676a152 tests: update help for add 2010-02-13 23:24:27 -06:00
Martin Geisler
5d5d51ef46 minirst: support line blocks 2010-02-13 21:21:40 +01:00
Martin Geisler
d31befc2e6 commands: add verbose example to help text for add 2010-02-13 18:44:19 +01:00
Martin Geisler
9abe6f2e23 minirst: report pruned container types 2010-02-13 18:11:08 +01:00
Patrick Mezard
484054cdea Fix test-pull under Windows 2010-02-14 19:15:56 +01:00
Patrick Mezard
d68b9b55a3 Fix test-push-validation under Windows 2010-02-14 18:39:16 +01:00
Patrick Mezard
377b6d27a9 Fix test-share and test-subrepo under Windows 2010-02-14 18:19:18 +01:00
Wagner Bruna
ce83d27cac patch: separate reverse copy data (issue1959) 2010-02-11 11:22:57 -02:00
Patrick Mezard
b1a6de2999 Add test for progress extension 2010-02-14 15:45:12 +01:00
Martin Geisler
5d09b1af66 minirst: support containers
Text can be grouped into generic containers in reStructuredText:

  .. container:: foo

     This is text inside a "foo" container.

     .. container:: bar

        This is nested inside two containers.

The minirst parser now recognizes these containers. The containers are
either pruned completely from the output (included all nested blocks)
or they are simply un-indented. So if 'foo' and 'bar' containers are
kept, the above example will result in:

     This is text inside a "foo" container.

     This is nested inside two containers.

If only 'foo' containers are kept, we get:

     This is text inside a "foo" container.

No output is made if only 'bar' containers are kept.

This feature will come in handy for implementing different levels of
help output (e.g., verbose and debug level help texts).
2009-10-04 22:03:41 +02:00
Martin Geisler
2feea4c203 test-mq-qclone-http: hide port number 2010-02-13 02:08:27 +01:00
Augie Fackler
123811715e localrepo: provide indeterminate progress information while bundling 2010-02-09 10:02:01 -06:00
Augie Fackler
dfd90db0f0 update: make calls to ui.progress() 2010-02-07 17:44:30 -06:00
Augie Fackler
47c5689cb6 localrepo: show indeterminate progress for incoming data
This has some quirks, like showing progress bars for importing
bundles, including during rebase.
2010-02-07 12:00:40 -06:00
Patrick Mezard
cfd28a67b2 test-mq-qclone: test --mq option 2010-02-12 21:30:24 +01:00
Augie Fackler
ada1fa58c8 test-subrepo-svn: handle svn output changes gracefully 2010-02-09 12:49:47 -06:00
Matt Mackall
dd8f91e931 Merge with stable 2010-02-11 17:44:01 -06:00
Augie Fackler
2b4b265287 localrepo: add optional validation (defaults to off) for incoming changes
This verifies that all manifests are present for incoming changes,
and all files for those manifests are also present. This is a simple
first-pass, and could be better, but seems like a valuable thing to
have, as I've seen pushes in the past that propagated revlog corruption.
2010-02-11 16:37:43 -06:00
Wagner Bruna
a4d5546600 branch: avoid using reserved tag names
Reported as Debian bug #552423.
2010-02-11 12:02:48 -02:00
Matt Mackall
b5b825953f streaming: actually change default 2010-02-09 14:12:34 -06:00
Matt Mackall
a2acbc421b fix up a bunch of check-code warnings 2010-02-09 14:12:22 -06:00
Mads Kiilerich
487f13afcd run-tests.py: skipped tests shouldn't change working directory 2010-02-09 01:12:29 +01:00
Patrick Mezard
24916993a0 test-branch-option: make it executable 2010-02-08 23:47:23 +01:00
Mads Kiilerich
6b87ee4801 tests: don't just silently strip port numbers 2010-02-08 02:53:41 +01:00
Steve Losh
eea597d740 mq: add parent node IDs to MQ patches on qrefresh/qnew
The goal of this patch is to add the IDs of the parents of applied MQ patches
into the patch file headers whenever qnew or qrefresh are run.

This will serve as a reminder of when the patches last applied cleanly and
will let us do more intelligent things in the future, such as:

    * Resolve conflicts found when qpushing to a new location by merging
      instead of simply showing rejects.

    * Display better diffs of versioned MQ patches because we can tell how the
      patched files have changed in the meantime.

Here are the new rules this patch introduces.  They are checked in this order:

    * If a patch currently has old, plain-style patch headers ("From:" and
      "Date:") do not change the style or add any new headers.

    * If the 'mq.plain' configuration setting is true, only plain-style
      headers will be used for all MQ patches.

    * qnew will initialize new patches with HG-style headers and fill in the
      "# Parent" header with the appropriate parent node.

    * qrefresh will refresh the "# Parent" header with the current parent of
      the current patch.
2010-02-07 10:47:54 -05:00
Benoit Boissinot
c8ed050aba prepush: add more precise error messages
Part of the patch is from timeless@mozdev.org

- indicate the branch name where there are multiple heads
- give better advice when hitting a possible race, where new heads are added
  between discovery and the call to branchmap(). In that case, asking the user
  to merge isn't helpful, since only remote has the changes.
2010-02-08 19:44:04 +01:00
Brendan Cully
ce047e9ab3 import: import each patch in a file or stream as a separate change
Supports hg export <revrange>, mail messages, and mailboxes.
Does not support multiple patches in a single MIME attachment.
Closes issue167.
2010-02-07 18:06:52 +01:00
Dirkjan Ochtman
19a2ad102b merge with mpm 2010-02-07 16:04:42 +01:00
Sune Foldager
3f138e6345 add -b/--branch option to clone, bundle, incoming, outgoing, pull, push 2010-02-07 15:23:46 +01:00
timeless
a4b2e4932b help: Improved body text 2010-02-07 15:08:26 +01:00
Patrick Mezard
9d2e0b1006 test-mq-qrefresh: test qrefresh when tip != qtip 2010-02-07 11:38:36 +01:00
Saint Germain
ca80dfaea9 subrepo: change default path in hgrc of subrepo after cloning
Previous behavior was to put in the cloned subrepos the path found in the original main repo.
However it isn't valid for relative path and it seems more logical to reference instead the subrepos
working copy path of the original main repo.
2010-02-06 19:14:37 +01:00
Dan Villiom Podlaski Christiansen
7bb072742b mq: remove qrefresh slow path (issue2025)
The slow path/fast path distinction has existed since mq was added to Mercurial
in 2006. The slow path was used whenever the refreshed revision wasn't the tip
2010-02-06 18:36:27 +01:00
Matt Mackall
6bd5cfceca config: handle short continuations (issue1999)
Thanks to Greg Ward for spotting and testing
2010-01-28 23:07:28 -06:00
Mads Kiilerich
6240e17232 test-encode: Use tr chacter classes instead of character ranges
Solaris ...
2010-01-23 02:03:42 +01:00
Martin Geisler
18f51e69c3 templates: do not add "ago" twice
After 8c278d482e5a, "ago" is added by the ago template filter.
2010-01-23 16:54:53 +01:00
Mads Kiilerich
ed42570444 tests: Don't use $PWD
$PWD doesn't work with solaris sh - use `pwd` instead
2010-01-22 17:13:55 +01:00
Mads Kiilerich
d9df32be63 test-patch-offset: Don't use unified diff
Solaris diff -u likes to be "helpful" and tell that "No differences encountered"
2010-01-17 01:52:36 +01:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
Jim Hague
ab2b905e27 Work around AIX shell builtin printf not handling \NNN.
On AIX, ksh builtin printf does not understand \NNN. Some tests use this
to generate test data, and so fail on AIX. Rework these tests to use python
to generate the correct characters. This fixes the tests on AIX and should
be more generally portable.
2010-01-06 18:03:33 +00:00
Benoit Boissinot
8fa7d00586 subrepo: fix merging of already merged subrepos (issue1986)
This fixes a bug seen when merging a main repo which contains a subrepo when
both repos have been merged before. Each repo (main and sub) has two
branches, both of which have been merged before.

In a subrepo, if the revision to merge to is an ancestor of the current rev,
then the merge should be a noop.

Test provided by Steve Losh.
2010-01-15 21:08:04 +01:00
Patrick Mezard
b5602adbcc cmdutil: expand style paths (issue1948)
Fix suggested by Andrea Riciputi <andrea.riciputi@gmail.com>
2010-01-15 09:50:52 +01:00
Patrick Mezard
f8872c1d27 ui: display progress with decimal notation 2010-01-08 23:15:24 +01:00
Siddharth Agarwal
eab3968819 Add support for relinking on Windows.
Test and minor code change by Patrick Mézard <pmezard@gmail.com>
2010-01-08 18:48:39 +05:30
Patrick Mezard
f77706b8eb Add test for relink extension 2010-01-08 22:30:07 +01:00
Mads Kiilerich
3b9db3f9d9 Update test and man page for multiple matching encode/decode filters 2010-01-05 03:20:45 +01:00
Patrick Mezard
e9130008f6 mq: preserve --git flag when folding patches
Without this, folding a git patch into a regular one downgrades the resulting
patch to a regular patch.
2010-01-01 19:53:05 +01:00
Patrick Mezard
a9ef9386bc mq: preserve --git flag when merging patches
Without this, merging a patch queue without diff.git=1 downgrades all git
patches to regular patches, losing data in the process.
2010-01-01 19:53:05 +01:00
Patrick Mezard
62d346efa4 copies: don't report copies with unrelated branch 2010-01-01 13:58:30 +01:00
Wagner Bruna
1f5640533e run-tests.py: clears http_proxy for all tests 2009-12-29 19:02:26 -02:00
Mads Kiilerich
daf0018117 test-bisect: test handling of invalid commands without relying on sh 2009-12-29 01:03:10 +01:00
Greg Onufer
5056bcbd9e patch: better handling of sequence of offset patch hunks (issue1941)
The built-in patch implementation applied the hunks to the wrong lines of the
file if the file in the repo has been modified to skew the patch line numbers
and the file contains repetitive sequences of lines.
2009-12-09 16:56:00 -08:00
Martin Geisler
cbf73c1303 win32text: do not mention hgext in warning 2009-12-23 20:31:35 +01:00
Christian Ebert
dd907fdefb keyword: go into restricted mode when transplanting
Expanded keyword is read into diff with transplant -b otherwise.
Test this scenario.

Thanks to Adam Berkes for providing an example case.
2009-12-23 12:04:17 +00:00
timeless
7f202fbf9b mq: qnew -f should reject merge working directories 2009-12-23 13:09:11 +01:00
Martin Geisler
70de345b15 hgext: enable extensions without "hgext." prefix in help texts 2009-12-22 00:50:03 +01:00
Nicolas Dumazet
a7b35aa08b graphlog: fix output when both a limit and a path are provided
Limit was interpreted as absolute, from the topmost revision, without
counting the number of revisions matching a given file.
Which caused "glog -lN file" to show sometimes less than N csets if
the file was not modified in all of the N previous csets.

glog will now match the behavior of log.
2009-12-11 15:25:33 +09:00
Mads Kiilerich
058474b7b1 test-hook: Don't use extended regular expressions with grep
Using egrep fixes failure on Solaris
2009-12-16 12:10:21 +01:00
Alexander Solovyov
023880fae9 schemes: url parts are counted from 1 2009-12-14 21:21:34 +02:00
Patrick Mezard
9499717be0 convert/svn: make sink recover gracefully from empty changeset
Otherwise when processing a changeset that in fact changes no files
(perhaps due to bug in import from CVS) can get something like:
  unexpected svn output:
  abort: unable to cope with svn output

Bug report and patch draft by Jesse Glick <jesse.glick@sun.com>
2009-12-07 12:44:15 -05:00
Nicolas Dumazet
6afdc121ac mq: qpop: remove added files before re-adding removed files
We need to do this to avoid file/directories conflicts.
This causes patches removing a committed file and replacing it
with a directory to be "unpoppable".
2009-12-11 15:09:52 +09:00
Martin Geisler
46bbcdcea6 config: raise ConfigError on non-existing include files
Before, an %include directive for a non-existing file resulted in an
IOError and a traceback.
2009-12-12 16:46:16 +01:00
Sune Foldager
0bec7f7de3 patchbomb: fix bug introduced in a6a075e49b19 and add test
Thanks to Augie Fackler for reporting this.
2009-12-08 23:23:59 +01:00
Sune Foldager
d262a88c75 patchbomb: handle repository#rev URLs correctly 2009-12-06 23:22:17 +01:00
Sune Foldager
0d1feca701 handle file URIs correctly, according to RFC 2396 (issue1153)
The new code aims to implement the RFC correctly for file URIs.
Previously they were handled incorrectly in several ways, which
could cause problem on Windows in particular.
2009-12-03 11:06:55 +01:00
Sune Foldager
1a664ccf10 transplant: fix small bug when a patch fails while using --filter 2009-12-03 11:06:44 +01:00
Nicolas Dumazet
686db2d57f alias: do not crash when aliased command has no usage help text 2009-12-03 14:14:44 +09:00
Alexander Solovyov
57c962c64c schemes extension 2009-11-24 17:48:23 +02:00
Sune Foldager
2368eabe27 extdiff: respect --option in command aliases (issue949) 2009-11-30 19:37:38 +01:00
Sune Foldager
9318efef10 fix bug in prepush logic involving merge changesets
When creating new branches and merging them into existing ones, you would
sometimes be able to push some changesets (the existing branches) without using
--force, even when that creates a new head on the remote.

A test which triggers the error has been added.
2009-11-30 14:58:52 +01:00
Christian Ebert
418943dab0 keyword: the CVS keyword is $RCSfile$, not $RCSFile$
http://cvsbook.red-bean.com/cvsbook.html#List%20Of%20Keywords

Fix default keyword map accordingly.
Keep $RCSFile$ for Mercurial backwards compatibility.
2009-11-26 10:51:17 +01:00
Martin Geisler
efe88f2ec3 keyword: sort demo output to ensure deterministic output 2009-11-26 20:50:16 +01:00
Matt Mackall
de8a538d3a Merge stable heads 2009-11-25 21:54:18 -06:00
Wagner Bruna
8fc5f3b74f run-tests: LANGUAGE may make tests fail 2009-11-24 13:55:13 -02:00
Benoit Boissinot
61f5eea9d1 run-tests: always set $COLUMNS, fix running tests under emacs shell
fix tests failure reported by Neal Becker.
2009-11-23 22:45:36 +01:00
timeless@mozdev.org
4cd821593d commands: Try to improve help options text for basic commands
Mostly rewrite -r text
2009-11-20 14:37:36 +02:00
Augie Fackler
03f43e09ea qnew: ignore force option
This makes the default behavior the same as qnew --force, and
deprecates the force option.
2010-02-07 07:37:05 -06:00
Dirkjan Ochtman
a0b7a8db3f strip apostrophes from an error messages 2010-02-07 15:09:02 +01:00
Dirkjan Ochtman
0e0764f0be commands: annotate follows by default, separate -f/--file option 2010-02-07 14:51:52 +01:00
Patrick Mezard
1ce5274987 Merge with crew-stable 2010-02-07 14:43:21 +01:00
Sune Foldager
5020620fca interpret repo#name url syntax as branch instead of revision
Previously, the name part of an repo#name url was interpreted as a
revision, similar to using the --rev option. Now it is instead looked
up as a branch first, and if that succeeds all the heads of the branch
will be processed instead of just its tip-most head. If the branch
lookup fails, it will be assumed to be an revision as before (e.g. for
tags).
2010-02-07 14:29:07 +01:00
Brodie Rao
91c6eab10f dispatch: provide help for disabled extensions and commands
Before a command is declared unknown, each extension in hgext is searched,
starting with hgext.<cmdname>. If there's a matching command, a help message
suggests the appropriate extension and how to enable it.

Every extension could potentially be imported, but for cases like rebase,
relink, etc. only one extension is imported.

For the case of "hg help disabledext", if the extension is in hgext, the
extension description is read and a similar help suggestion is printed.
No extension import occurs.
2010-02-07 14:01:43 +01:00
Dirkjan Ochtman
e11a173bf9 mq: don't warn on qpush against a branch head 2010-02-07 14:06:05 +01:00
Dirkjan Ochtman
38666f1574 mq: deprecate qinit and qcommit 2010-02-07 13:49:52 +01:00
Dirkjan Ochtman
7144a20940 mq: deprecate qsave, qrestore and related options 2010-02-07 12:34:02 +01:00
Nicolas Dumazet
7639059665 inotify: improve error messages
* prefix messages by inotify-(client|server)
* make sure that all warning and abort messages use the same format.
* in the case where inotify.sock is an old broken symlink, say so and abort
  instead of trying to overwrite the already existing link
2009-11-19 11:06:01 +09:00
Greg Ward
939861b0bd run-tests: give each child its own tmp dir (issue1911)
Fixes bug introduced by 40ac669fd6c2 (issue1911: --tmpdir plus parallel
mode = fail), and also fixes the long-standing quirk that parallel mode
created multiple /tmp/hgtests.XXXXXX directories.  Now there is only one
/tmp/hgtests.XXXXXX, with child0, child1, etc. under it.
2009-11-18 22:23:11 -05:00
Nicolas Dumazet
696edec52d inotify: add a inotify.pidfile configuration possibility
This will mainly help us in our tests to log pids of inotify servers
started implicitely, to make sure that unkilled inotify daemons do not clutter
the output of unrelated tests.

Also desactivate the workaround introduced in 37824a274d63
2009-11-17 15:36:09 +09:00
Nicolas Dumazet
bf5cba2457 cmdutil.service: do not _exit(0) in the parent process
The fact that a parent process spawns a daemon does not necessarily means that
it is the only think it has to do. This was forcing since e8efd88001e7 inotify
processes launched implicitely to exit prematurely:
when no inotify server was running, "hg st" for example would only launch a
inotify server, _exit(0) and thus would not return file statuses.

This changeset adds a test for implicitely launched inotify processes.
Change to output of test-inotify-1208 is correct: it reflects the normal
error message of "hg st" when not dying during "hg inserve" daemon creation.
2009-11-17 15:00:00 +09:00
Martin Geisler
f70df45cf9 commands: use field lists instead of literal blocks in docstrings
The literal blocks were mis-used for alignment, but this of course
changes the font of the entire block to a fixed width font in the HTML
version. Using a proper list solves this.
2009-11-19 23:27:11 +01:00
Thomas Arendsen Hein
694f407973 Extend test-branchmap to test 623593608e75
(encoding fallback in branchmap to maintain compatibility with 1.3.x)
2009-11-18 16:47:20 +01:00
Dan Villiom Podlaski Christiansen
d5e8634932 qseries: don't truncate the patch name (issue1912)
Instead of truncating the entire output line of `qseries', only the
summary is truncated.
2009-11-17 22:16:41 +01:00
Brendan Cully
1ce45ec1c3 Allow import --no-commit over an applied MQ patch.
Since it only changes the working directory, it does not matter whether a patch is
applied. This change makes it easier to use hg import --no-commit instead of patch.
2009-11-16 11:31:08 -08:00
Benoit Boissinot
b1932a0c4a inotify: workaround test-inotify-dirty-dirstate failures
- disable inotify during clone
- record inotify daemon PID, in order to have them properly killed
2009-11-16 11:58:03 +01:00
Martin Geisler
85252bdcb6 diff: change --inverse to --reverse
This fixes an incompatibility with patch(1), which also uses --reverse
for reversed diffs. The --inverse flag was added in 0f0383897d54. That
name was chosen over --reverse since it was thought that --reverse
would make --rev ambiguous.

It turns out that both flags can co-exist, with the cost that --rev
can no longer be shortened to --r and --re. Since one can always use
the short -r option, this is not a real problem.
2009-11-14 14:21:53 +01:00
Nicolas Dumazet
fd600dc328 inotify: Do not access inotify when dirstate is dirty (issue1811)
Original patch was provided by Simon Heimberg

It delegates dirstate computation to dirstate.status when dirstate is dirty:
better be slow from time to time instead of using wrong data.

This solves issue1719. As the last component, issue1810, is still not solved,
test-inotify-dirty-dirstate will fail for now. It emphasizes a regression due
to e8efd88001e7:

changeset:   9515:e8efd88001e7
user:        Nicolas Dumazet <nicdumz.commits@gmail.com>
date:        Sun Aug 16 11:11:37 2009 +0900
summary:     inotify: use cmdutil.service instead of local daemonizing code

Ancestors of 7c01599dd30 are passing the test, when applied this patch.
Regression has to be investigated, but this patch is important since it affects
often mq operations.
2009-11-11 14:38:59 +09:00
Nicolas Dumazet
800658e086 inotify: mark directories visited during lookup (issue1844)
Emulate the match.dir calls that are made in dirstate.walk:
 * first mark the visited directories on the server side
 * then extend the transmitted response to include this directory list
 * and lastly call match.dir on each directory
2009-11-13 08:31:10 +09:00
Bryan O'Sullivan
4035f1dfaa Make it possible to debug failed hook imports via use of --traceback
Prior to this change, if a Python hook module failed to load (e.g. due
to an import error or path problem), it was impossible to figure out
why the error occurred, because the ImportErrors that got raised were
caught but never displayed.

If run with --traceback or ui.traceback=True, hg now prints tracebacks
of both of the ImportError instances that get raised before it bails.
2009-11-12 14:05:52 -08:00
Dirkjan Ochtman
c93b170e46 hgweb: don't choke when an inexistent style is requested (issue1901) 2009-11-12 16:39:11 +01:00
Dirkjan Ochtman
91d7a1e376 help: don't show extension list on extension help 2009-11-12 13:43:36 +01:00
Patrick Mezard
634e25f569 test-rebase-newancestor: make executable 2009-11-11 18:32:56 +01:00
Patrick Mezard
2f3f5f28ea mdiff: fix diff -b/B/w on mixed whitespace hunks (issue127)
Previous code was computing hunks then checking if these hunks could be ignored
when taking whitespace/blank-lines options in accounts. This approach is simple
but fails with hunks containing both whitespace and non-whitespace changes, the
whole hunk is emitted while it can be mostly made of whitespace. The new
version normalize the whitespaces before hunk generation, and test for
blank-lines afterwards.
2009-11-11 18:31:42 +01:00
Bill Schroeder
a75ddfba7d dispatch: better error message for --config option 2009-11-04 13:44:15 -06:00
Benoit Boissinot
db166460cd merge with crew 2009-11-10 22:42:13 +01:00
Patrick Mezard
d8a8eb5584 convert: reenable SVN support after license issue solved 2009-11-10 22:32:17 +01:00
Patrick Mezard
29f1e65f87 patchbomb: normalize date format in generated mboxes
mbox format should use time.asctime(). Unfortunately, this function writes
2-characters day of week on Windows while unix one writes a single character.
Normalize to Windows version since the other one can hardly be written with
strftime().
2009-11-08 18:08:24 +01:00
Patrick Mezard
240248e679 hghave: be more tolerant to rst2html output
On Windows, rst2html.bat calls rst2html.py, printing something like:

"rst2html.py (Docutils"

(notice the extra ".py")
2009-11-10 11:57:03 +01:00
Patrick Mezard
ef872dce44 test-convert-hg-svn: fix test output 2009-11-10 21:55:59 +01:00
Christian Boos
62e4f8e6b2 rebase: make sure the newancestor is used during the whole update
(issue1561)

Before this change, newancestor was used only once as a replacement
for ancestor.ancestor, but merge.update calls ancestor.ancestor
several times, so it ends up with the "wrong" ancestor (the real
ancestor, but we want the parent of the rebased changeset for all but
the first rebased changeset).

Added a new test case for this: test-rebase-newancestor.

Also, in one scenario in test-rebase-collapse, there was a spurious
conflict caused by the same issue, so that test case was fixed by
removing the now unneeded conflict resolution and the output was
adapted accordingly.
2009-11-09 20:15:49 +01:00
Peter Arrenbrecht
be2566722a bundle: add test for Issue1704
Original version by Greg Ward.
2009-11-07 12:28:31 +01:00
Peter Arrenbrecht
6a8e51ae73 bundle: don't send too many changesets (Issue1704)
The fast path in changegroupsubset can send too many csets. This happens
because it uses the parents of all bases as common nodes and then goes
forward from this again. If a base has a parent that has another child,
which is -not- a base, then this other child will nevertheless end up in
the changegroup.

The fix is to not use findmissing(), but use nodesbetween() instead, as
do the slow path and incoming/outgoing.

The change to test-notify.out is correct, because it actually hits this
bug, as can be seen by glog'ing the two repos:

@    22c88
|\
| o  0a184
| |
o |  0647d
|/
o  cb9a9

and

o  0647d
|
@  cb9a9

It used to pull 0647d again, which is unnecessary.
2009-11-07 12:28:30 +01:00
Mads Kiilerich
5b4c840b88 test-extension: Solaris grep don't know [[:digit:]] 2009-11-08 18:50:39 +01:00
Benoit Boissinot
73eeb3367c merge with hg-stable 2009-11-08 18:18:46 +01:00
Benoit Boissinot
ba0824a843 fix test-patchbomb on solaris 2009-11-08 18:05:56 +01:00
Benoit Boissinot
3c311b3a29 fix test-diffstat on solaris 2009-11-08 17:59:36 +01:00
Matt Mackall
a24bf6a399 Merge with crew 2009-11-08 10:40:51 -06:00
Matt Mackall
238098252f submerge: properly deal with overwrites
also pull .hgsubstate check out of inner loop
2009-11-08 10:29:52 -06:00
Thomas Arendsen Hein
537ed03bdc Use utf-8 encoding in test-branchmap's clone call
After 269c95b7ae24 it is printed in local encoding, i.e. "C" if not set
otherwise.
2009-11-07 23:38:01 +01:00
Thomas Arendsen Hein
823cb9024f Make test-branchmap executable and adjust output after 00655544b9f3 2009-11-07 23:27:25 +01:00
Martin Geisler
93008b71a6 ui: refer to "hg help config" when no username is set 2009-11-07 22:13:09 +01:00
Martin Geisler
d9281d88ed help: add "hg help config" topic
This is a condensed version of the first two sections of hgrc.5.txt.
After a slight upgrade of minirst, we can move the whole of hgrc.5.txt
into the config help topic and just let the man page include it.
2009-11-07 22:12:50 +01:00
Matt Mackall
99b0340086 Fix up import test 2009-11-07 14:12:08 -06:00
Martin Geisler
4c7564177a minirst: support enumerated lists 2009-11-07 03:14:56 +01:00
Martin Geisler
7271a9da14 test-minirst: don't test on invalid reST input
Input such as

      Only the
    left-most line
  (this line!)
    is significant
      for the indentation

is not valid reStructuredText: the first line starts a block quote,
but then the second line is not allowed to be unindented.
2009-11-05 21:53:22 +01:00
Martin Geisler
c3718b9d5b commands: call ui.username carefully in debuginstall
After 54b67f7bd5df, 'hg debuginstall' would abort halfway through if
no username was set. We now catch and display the exception instead.
2009-11-07 01:46:27 +01:00
Martin Geisler
1f42ec8873 mq: do not call ui.username unless it is necessary
After changeset 54b67f7bd5df, ui.username will abort by default if no
username is set. It is therefore wrong to call ui.username when a
username was provided on the command line.
2009-11-07 00:13:05 +01:00
Dirkjan Ochtman
0032b55ff7 hgweb: treat rev as raw-rev if user agent is hg 2009-11-06 22:46:46 +01:00
Marti Raudsepp
4bbdbabed4 patchbomb: fix 'echo -en' bashism in test-patchbomb
The echo command doesn't accept options in some shells.
printf is required by the SUSv2 (Single UNIX Specification v2).
2009-11-06 13:48:17 +02:00
Joel Rosdahl
26eca8546f tests: glog with style and file parameter (issue1896) 2009-11-06 08:28:45 +01:00
Yannick Gingras
ed1d8b7e7a diff: add --inverse option
Most of the time, one can reverse a diff by swapping the revisions passed with
-r but it happens that if you use the global -R, and diff against the tip of
the current repo, you can't swap the revisions. One use-case for that is
reviewing changes from a bundle before unbundling. One could also pipe the
output of `hg diff` to a command line filter that reverses the diff, but that
would remove the benefit from color diffs. Therefore, having an option in
`hg diff` to reverse a diff is a good thing.

The option flag selection was tricky. GNU patch uses -R/--reverse but -R is
already used as a global option and --reverse would make --rev ambiguous.
2009-11-05 15:18:56 +01:00
Dirkjan Ochtman
cc8f0501e9 hgweb: keep original order from hgwebdir config files (issue1535) 2009-11-05 15:06:35 +01:00
Dirkjan Ochtman
c08c589861 templater: readable dates older than 24 months revert to ISO8601 (issue1006) 2009-11-05 15:19:54 +01:00
Dirkjan Ochtman
2f9a035003 templater: put 'ago' inside the age template filter 2009-11-05 14:44:29 +01:00
Dirkjan Ochtman
93317651a4 coal/paper: show link to latest file revision (issue1344) 2009-11-05 14:26:37 +01:00
Dirkjan Ochtman
0636c72fff tests: fix hghave test for rst2html to not spew error output 2009-11-05 11:51:35 +01:00
Stuart W Marks
c06e10d43b update: allow branch crossing without -c or -C, with no uncommitted changes
Update will now allow crossing branches within the same named branch,
when given a specific revision, if the working dir is clean, without
requiring the -c or -C option. Abort if no revision is given and
this would cross branches.  Minor change to abort message if
uncommitted changes are found.

Modify test-update-branches and output to reflect the altered case. Modify
test-merge5.out to reflect the altered case. Modify
test-up-local-change.out with new message.
2009-11-05 10:53:59 +01:00
Stuart W Marks
34fa5664cf update: add comments and test cases for updating across branches
Add comment to merge.py:update() showing various cases of 'hg update': to a
descendant, crossing named branches, and crossing branches within a named
branch; with no option, -c or -C; with or without uncommitted changes; and
with or without a specific revision. Add tests for all of these cases.
2009-11-05 10:53:36 +01:00
Marti Raudsepp
da98f0beee patchbomb: fix handling of email addresses with Unicode domains (IDNA)
dom.encode('idna') requires dom to be a Unicode string.
2009-11-05 10:49:28 +01:00
Adrian Buehlmann
ba9637aae6 clone: add option -u/--updaterev 2009-11-05 11:05:13 +01:00
Martin Geisler
769cf16d06 color: wrap qrecord
The qrecord command is registered in uisetup phase, so we do our
wrapping in extsetup phase.
2009-11-05 01:11:28 +01:00
Martin Geisler
4ea1ad7511 test-bisect: normalize shell error message
Different shells on vary in their error messages. Here we're satisfied
if the shell mentions './foobar' at all.
2009-11-04 09:34:04 +01:00
Greg Ward
8ce4dc3093 run-tests: add "debug" mode: don't capture child output, just show it.
In debug mode, we:
- don't try to diff expected vs actual output
- disallow --interactive
- disable timeouts (warn if user tried to supply one)
- don't try to parse hghave output, since we don't have the output
- don't try to save output to .err file
2009-11-02 17:06:11 -05:00
Greg Ward
000c454c9a run-tests: make --tmpdir option more useful.
- instead of creating HGTMP inside tmpdir, now HGTMP is tmpdir
  (thus, fail if tmpdir already exists)
- passing --tmpdir automatically turns on --keep-tmpdir
2009-11-02 17:06:10 -05:00
Martin Geisler
87e32229f6 commands: slightly better help for --traceback 2009-11-02 20:50:57 +01:00
Benoit Boissinot
35490f7afa fix tests output changed by a9c8580e4d05 2009-11-02 19:07:26 +01:00
Sune Foldager
46c649736d transaction: always remove empty journal on abort
When transactions without entries were aborted, the journal (of size 0) was not
unlinked, which prevents subsequent operations until hg recover is run on the
repository.

We also make sure the journal is unlinked when committing, even if the provided
hook doesn't do so.
2009-11-02 10:19:14 +01:00
Sune Foldager
f613efb048 test-bisect: fix shell-dependent output 2009-11-02 10:18:43 +01:00
Sune Foldager
88f8c97e4b change 'journal already exists' to 'abandoned transaction found'
Journal already exists is a pretty internal piece of information, which
doesn't necessarily mean much to people who are not familiar with the code.
The new text is a more well-known concept.
2009-11-02 10:17:20 +01:00
Sune Foldager
36a958fe4d verify: report existence of journal 2009-11-02 10:15:04 +01:00
Henrik Stuart
8e476f8bf5 transfer branchmap branch names over the wire in utf-8 2009-10-26 13:37:39 +01:00
Alexander Solovyov
6b680abcf9 churn: fix changeset count (broken by 0fc99cecabb9) 2009-10-30 13:40:23 +02:00
Alexander Solovyov
af41ec3842 churn: ability to display added/removed lines separately 2009-10-29 20:50:24 +02:00
Yuya Nishihara
f47e5449d8 hgweb: added test case for extension loading phases (issue1824)
this checks the order of module loading phases of hgweb.

`4) reposetup' lines are duplicated because hgweb calls
hg.repository() twice, one by __init__, another by refresh.
2009-10-28 23:59:18 +09:00
Yuya Nishihara
45dc499697 diffstat: made test case work with POSIX sh and printf
* arithmetic expression ((...)), without $, is bashism.
* printf '\xXX' seems non-standard. '\0' is okay.
  http://www.opengroup.org/onlinepubs/009695399/utilities/printf.html

tested with bash 4.0 and dash 0.5.5.1
2009-10-27 21:59:44 +09:00
Martin Geisler
d0b16ead31 patchbomb: fix double-spaces in prompts 2009-10-25 14:24:39 +01:00
timeless
1ed92a7db7 commands: adding --no-status to resolve to match status 2009-10-25 13:27:54 +01:00
Brodie Rao
7c2f2247c5 diffstat: with --git, mark binary files with Bin
Normally, diffs without any text insertions or deletions are reported
as having 0 lines changed by stock diffstat. Compatibility is
preserved with stock diffstat in this case, but when using --git,
binary files are marked with Bin as a means of clarification.

git diff --stat does something similar, though it also includes the
old and new file sizes.
2009-10-25 02:53:33 +02:00
Brodie Rao
2306a92219 color: colorize diff --stat 2009-10-25 02:52:36 +02:00
Brodie Rao
8c7629d9e4 diff: add --stat for diffstat output
diff/qdiff --stat invokes patch.diffstat() on the diff output.

When in interactive mode, the output's maximum width is determined by the
terminal's width.
2009-10-25 02:52:35 +02:00
Martin Geisler
5a115c8c69 convert: document parent order in splicemap help (issue1764) 2009-10-23 22:55:28 +02:00
Martin Geisler
04819192e5 test-debugcomplete: update output to match 0c9e863cea26 2009-10-20 22:39:37 +02:00
Matt Mackall
0a74fdabf2 Merge with crew 2009-10-19 23:53:25 -05:00
Matt Mackall
73b30861ca Remove parents from default help in favor of summary 2009-10-19 00:36:52 -05:00
Matt Mackall
993bb8325e Introduce summary command 2009-10-18 22:31:05 -05:00
Mads Kiilerich
0f7110ec11 Merge with redone 9660769e6539 (issue1860) 2009-10-16 11:19:39 +02:00
Martin Geisler
48349e3ff0 Merge with crew-stable 2009-10-16 00:45:18 +02:00
Benoit Allard
f444222eca mq: fix traceback for qpush inexistant-patch with no patch applied 2009-10-16 00:09:18 +02:00
Patrick Mezard
990e7895a0 Merge with crew-stable 2009-10-16 00:06:23 +02:00
Patrick Mezard
f235a47953 convert/svn: better error when hg cannot call itself (issue1838) 2009-10-15 23:15:30 +02:00
Patrick Mezard
7b9a712086 patch: handle symlink updates/replacements (issue1785) 2009-10-15 23:15:30 +02:00
Patrick Mezard
5c89cb752a patch: handle symlinks without symlinkhunk
Symlink creations and deletions were handled with a special symlinkhunk object,
working like a binary hunk. However, this model does not support symlink
updates or replacements, so we teach regular hunks how to handle symlinks.
2009-10-15 23:15:30 +02:00
timeless@mozdev.org
1ee61bd64c rebase: change rebase help to talk about changesets and branch names 2009-10-14 20:55:39 +03:00
Bryan O'Sullivan
6b7ed127b1 Merge with mpm 2009-10-13 13:43:55 -07:00
Lee Cantey
0c7be02dba test-gendoc: adjust output to account for Swedish translation 2009-10-13 12:23:23 -07:00
Matt Mackall
207b3fe6fe bisect: use util.system and fix good/bad when using -c
The existing scheme using util.find_exe and subprocess.call meant we
couldn't use simple shell commands in tests. Fix that.

Also, it mistakenly used status from the system() call rather than
good from the bisect call in reporting results.
2009-10-12 18:25:46 -05:00
Matt Mackall
34aac1e48a bisect: limit considered set to descendants of first good rev 2009-10-12 14:59:28 -05:00
Matt Mackall
7d81f1588d tests: add -k to test scripts matching keywords
argument is a space-separated list of keywords that are searched for
in the name and body of each test. This makes it easy to run only
tests related to tags, hgweb, revert, etc. (eg -k "tag hgweb revert").
2009-10-12 14:52:53 -05:00
Matt Mackall
ba7d982f34 run-tests: add --noskips option 2009-10-11 13:58:53 -05:00
Dirkjan Ochtman
2b60214db7 merge with hg-stable 2009-10-10 12:19:58 +02:00
Raoul Bhatia [IPAX]
20e457f4b0 use short identifiers in atom feed 2009-10-09 16:27:05 +02:00
Brodie Rao
9507f2f171 color: add test for record support 2009-10-09 03:53:24 -04:00
Patrick Mezard
a7d029beb4 patch: do not swallow header-like patch first line (issue1859)
Current solution is hackish but looks like a good trade-off short of rewriting
patch.extract() significantly.
2009-10-08 23:42:33 +02:00
Patrick Mezard
6815e3dc8d windows: fix unlink() not dropping empty tree (issue1861) 2009-10-08 23:32:36 +02:00
Sune Foldager
ded10074e6 rebase: return early when source is descendant of destination
This only happens when using --base (or no source selection options), as
rebase already aborts in this situation when using --source.

Without this change you get an abort from the underlying merge, and the
repository is in a different state than you started with (the working
dir parent is changed).
2009-10-08 10:39:43 +02:00
Sune Foldager
4ecbc53304 rebase: improve error and debug messages 2009-10-08 10:07:41 +02:00
Matt Mackall
b6547e5312 Merge with stable 2009-10-11 13:54:19 -05:00
Matt Mackall
daf9754427 Merge with -crew-stable 2009-10-07 23:25:41 -05:00
Patrick Mezard
0133f8d115 convert/cvs: stop supporting external cvsps 2009-10-05 22:57:15 +02:00
Patrick Mezard
c1dcf4d3bd Merge with crew-stable 2009-10-05 22:17:39 +02:00
Patrick Mezard
6fe64cf348 convert: make mapfile handle LF and CRLF shamap (issue1846) 2009-10-05 22:01:08 +02:00
Patrick Mezard
fd35df4182 Merge with crew-stable 2009-10-04 23:16:54 +02:00
Patrick Mezard
0ee3fec16c convert/darcs: handle directory renaming 2009-10-04 23:06:14 +02:00
Patrick Mezard
e3432a31a9 convert/darcs: fix file renaming (issue1853) 2009-10-04 22:23:11 +02:00
Mads Kiilerich
8ff24147fd cmdutil: templating keywords latesttag and latesttagdistance
This can be used for referring to revisions in a reasonable
meaningful, stable and monotonically increasing way, suitable for
releases or builds directly from a repository.

The latest tag is found by searching through untagged ancestors and
finding the latest tagged ancestor based on tag date. The distance is
found from the length of the longest path to the tagged revision.

For example:
  hg log -l1 --template '{latesttag}+{latesttagdistance}\n'
can return
  1.3.1+197

This is mostly work by Gilles Moris <gilles.moris@free.fr>
2009-10-03 18:31:20 +02:00
Matt Mackall
3a921c1e6f notify: update test 2009-10-03 14:39:46 -05:00
Christian Ebert
c56e7a0b9e test-keyword: run kwdemo before setting up [keyword] files
kwdemo would pass the test without uisetup otherwise.
Also no need to specify --default option.
2009-09-10 23:15:37 +02:00
timeless@mozdev.org
8ec7a3012a record: remove superfluous space 2009-09-13 03:04:40 +03:00