Mercurial > evolve
annotate tests/testlib/retain-extras-ext.py @ 6601:7a9d3fde811f
tests: clarify what branch we're closing
Turns out, the other topological head is on double//slash branch, but the one
we're actually closing here is on default.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 30 Oct 2023 14:26:30 -0300 |
parents | e36883d88108 |
children |
rev | line source |
---|---|
6493
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
1 """ |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
2 Wrap 'retained_extras_on_rebase' (from either mercurial or evolve) to retain |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
3 the "useful" extra. |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
4 """ |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
5 |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
6 from mercurial import rewriteutil |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
7 |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
8 try: |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
9 rewriteutil.retained_extras_on_rebase |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
10 except AttributeError: |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
11 # install the compatibility layer on older version |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
12 from hgext3rd.evolve import compat |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
13 compat.retained_extras_on_rebase # silence linter |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
14 |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
15 def extsetup(ui): |
e36883d88108
evolve: add a test to capture the expected behavior of retaining extras
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
16 rewriteutil.retained_extras_on_rebase.add(b'useful') |