2020-05-16 14:15:23 +00:00
|
|
|
core.workflow(
|
|
|
|
name = "default",
|
|
|
|
origin = git.github_origin(
|
|
|
|
url = "https://github.com/google/copybara.git",
|
|
|
|
ref = "master",
|
|
|
|
),
|
|
|
|
destination = hg.destination(
|
|
|
|
url = "file:///home/lukegb/depot",
|
|
|
|
fetch = "default",
|
|
|
|
push = "default",
|
|
|
|
),
|
|
|
|
destination_files = glob(
|
|
|
|
["third_party/copybara/**"],
|
|
|
|
exclude = [
|
|
|
|
"third_party/copybara/copy.bara.sky",
|
|
|
|
"third_party/copybara/patches/**",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
authoring = authoring.pass_thru("Default email <noreply+copybara@lukegb.com>"),
|
|
|
|
transformations = [
|
2020-05-16 23:06:31 +00:00
|
|
|
patch.apply(patches = [
|
|
|
|
"patches/0001-Make-Mercurial-at-least-slightly-usable.patch",
|
|
|
|
"patches/0002-HgRepository-HGPLAIN.patch",
|
2020-05-16 23:08:49 +00:00
|
|
|
"patches/0003-HgDestination-nonpublishing.patch",
|
2021-07-04 15:01:53 +00:00
|
|
|
"patches/diff-support-T.patch",
|
2021-07-04 15:10:44 +00:00
|
|
|
"patches/hg-topic-mode-ignore.patch",
|
2020-05-16 23:06:31 +00:00
|
|
|
]),
|
2020-05-16 14:15:23 +00:00
|
|
|
core.move("", "third_party/copybara"),
|
|
|
|
],
|
|
|
|
)
|