Mercurial > evolve
annotate tests/test-options.t @ 6033:182e2a1dbd1c
topic: drop topicfilter usage from topicrepo.commitctx()
This block of code was introduced in 13313d0cab71, but the commit description
doesn't explain the exact intent of this code.
The fact that the result of other.commitctx() was discarded makes me think that
this block only existed to deal with amends, and it was only useful for code
that was removed earlier in this series.
The only code that's left in commitctx() is adding current topic to
workingcommitctx, and I don't think we need to adjust repo filter for that.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 03 Sep 2021 08:01:58 +0300 |
parents | bf8638b5c526 |
children | f60f1ded1a20 |
rev | line source |
---|---|
1226 | 1 $ cat >> $HGRCPATH <<EOF |
2 > [ui] | |
3 > logtemplate={rev}:{node|short}[{bookmarks}] ({obsolete}/{phase}) {desc|firstline}\n | |
4 > [extensions] | |
5 > EOF | |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1226
diff
changeset
|
6 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
1226 | 7 |
8 $ mkcommit() { | |
9 > echo "$1" > "$1" | |
10 > hg add "$1" | |
11 > hg ci -m "add $1" | |
12 > } | |
13 | |
14 $ hg init repo | |
15 $ cd repo | |
16 $ mkcommit a | |
17 $ mkcommit b | |
18 | |
19 test disabling commands | |
20 | |
21 $ cat >> .hg/hgrc <<EOF | |
22 > [experimental] | |
23 > evolution=createmarkers | |
24 > allowunstable | |
25 > exchange | |
26 > EOF | |
4185
9bce7e6c18b3
tests: remove a"| head -n 2" that just hides an error code
Martin von Zweigbergk <martinvonz@google.com>
parents:
4181
diff
changeset
|
27 $ hg prune |
1226 | 28 hg: unknown command 'prune' |
4181
ab3581bc0637
branching: preserve the expected output on default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4168
diff
changeset
|
29 (use 'hg help' for a list of commands) |
5703
bf8638b5c526
tests: update exit code for command errors
Anton Shestakov <av6@dwimlabs.net>
parents:
4185
diff
changeset
|
30 [10] |