Mercurial > evolve
view tests/test-check-sdist.t @ 6889:a66cf9008781
obslog: also display patch for rebased changesets
This applies the same logic that is used for "merge-diff" to rebased
changesets. The successors' content is compared to the content of the
predecessors rebased in-memory on the new parents.
This highlights the changes that were actually introduced while rebasing (like
conflict resolution or API adjustment).
As a side effect, obslog now also outputs slightly more diffs for splits,
showing what parts of the original big changeset were moved to the smaller
split components (but for now it only works for the first few changesets).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 22 Sep 2024 02:58:54 +0200 |
parents | 1ce9c2252965 |
children | 361dcfcb3f08 |
line wrap: on
line source
Enable obsolescence to avoid the warning issue when obsmarkers are found $ cat << EOF >> "$HGRCPATH" > [experimental] > evolution = all > EOF $ cd "$TESTDIR"/.. Archiving to a separate location to avoid hardlink mess when the repo is shared #if test-repo $ . "$RUNTESTDIR/helpers-testrepo.sh" $ testrepohg archive "$TESTTMP"/hg-evolve $ cd "$TESTTMP"/hg-evolve #endif $ "$PYTHON" setup.py check --metadata --restructuredtext $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?) warnings.warn(msg) (?) warning: no previously-included files found matching 'docs/tutorial/.netlify' warning: no previously-included files found matching '.gitlab-ci.yml' warning: no previously-included files found matching '.hg-format-source' warning: no previously-included files found matching 'Makefile' no previously-included directories found matching 'contrib' no previously-included directories found matching 'debian' no previously-included directories found matching '.gitlab' $ cd "$TESTTMP"/dist $ find hg?evolve-*.tar.gz -size +800000c hg?evolve-*.tar.gz (glob) $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||;s|/$||;/^$/d' | sort > ../files $ grep -E '^tests/test-.*\.(t|py)$' ../files > ../test-files $ grep -E -v '^tests/test-.*\.(t|py)$' ../files > ../other-files $ wc -l ../other-files ??? ../other-files (glob) $ wc -l ../test-files ??? ../test-files (glob) $ grep -F debian ../files tests/test-check-debian.t $ grep -F __init__.py ../files hgext3rd/__init__.py hgext3rd/evolve/__init__.py hgext3rd/evolve/thirdparty/__init__.py hgext3rd/topic/__init__.py $ grep -F common.sh ../files docs/tutorial/testlib/common.sh tests/testlib/common.sh $ grep -F README ../files README.rst docs/README docs/tutorial/README.rst hgext3rd/topic/README $ grep -E '(gitlab|contrib|hack|format-source)' ../files [1] $ grep -F netlify ../files [1] #if test-repo $ ( cd "$TESTTMP"/hg-evolve && find . ) | sed -e 's|^\./||;/^\.$/d' | sort > ../src-files extra files/directories in the tarball $ comm -23 ../files ../src-files PKG-INFO source files/directories excluded from the tarball $ comm -13 ../files ../src-files .gitlab .gitlab-ci.yml .gitlab/issue_templates .gitlab/issue_templates/new-version.md .hg-format-source .hg_archival.txt .hgignore .hgtags Makefile contrib contrib/docker contrib/docker/pytype contrib/docker/pytype/Dockerfile contrib/docker/pytype/README.rst contrib/docker/pytype/entrypoint.sh contrib/hammerclient.py contrib/merge-test-compat.sh contrib/nopushpublish.py debian debian/changelog debian/compat debian/control debian/copyright debian/docs debian/rules debian/source debian/source/format debian/source/options debian/test-blacklist docs/tutorial/.netlify hgext3rd/evolve/hack hgext3rd/evolve/hack/__init__.py hgext3rd/evolve/hack/drophack.py tests/test-drop.t #endif #if twine $ twine --no-color check * Checking hg?evolve-*.tar.gz: PASSED (glob) #endif