annotate tests/testlib/update-hg-repo.sh @ 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 fc3ad54219d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 #!/bin/sh
6109
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
2 # Clone or update core Mercurial repo at the provided path. Useful for CI
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
3 # runners that don't have a shared repo setup, e.g. the shell runner that is
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
4 # currently used for Windows CI.
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5
6110
fc3ad54219d7 tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents: 6109
diff changeset
6 URL=https://mirror.octobus.net/hg
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 if hg root -R "$1"; then
6110
fc3ad54219d7 tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents: 6109
diff changeset
8 hg pull -R "$1" "$URL"
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 else
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 rm -rf "$1"
6110
fc3ad54219d7 tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents: 6109
diff changeset
11 hg clone "$URL" "$1"
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 fi