Commit graph

9 commits

Author SHA1 Message Date
Nirbheek Chauhan
5b77e65d06 Move checkout-branch-worktree to gst-worktree.py
We will add more actions to it than just 'checkout'. Also add
a wrapper shell script that calls gst-worktree.py with the correct
arguments.
2019-11-24 01:25:38 +05:30
Nirbheek Chauhan
dd065f67cf git-worktree: Fix indentation 2019-11-23 17:08:17 +05:30
Nirbheek Chauhan
2138bce2f1 git-worktree: Allow multiple worktrees for subproject branches
It's pretty common to have the same branch for a subproject in
multiple worktrees. F.ex., when you want to test a feature branch
common to a few gstreamer subprojects but not the rest.
2019-11-23 17:08:17 +05:30
Nirbheek Chauhan
a950c286ba git-worktree: Parse wrap files instead of meson introspect
meson introspect is the wrong approach since it:

* Requires a pre-existing build directory for some branch
* Gives us potentially incorrect information since it tells us
  subproject details for the current branch, not the branch we're
  checking out.
* Does not allow us to share the git repos for non-gst repos since it
  can't tell us the git branches for them.

Instead, parse the wrap files in the branch we're checking out since
they're just INI-style config files.
2019-11-23 17:08:17 +05:30
Thibault Saunier
fda8379411 scripts: Add a script to check that all repos are clean
This is useful to check that a build didn't result in changes in the
code/generated files

This will be used to check that the plugins documentation cache file is
properly commited, and that necessary workaround for particular case
are adopted.
2019-05-13 11:42:15 -04:00
Nirbheek Chauhan
124098adc4 scripts: Auto-detect whether we can enable colors
Also do the setup necessary on Windows to enable ANSI colours on the
console (if available). That code is copied from Meson and is Apache2
licensed.
2019-02-05 17:23:49 +05:30
Víctor Manuel Jáquez Leal
d3ea533b20 Don't process the whole commit
https://bugzilla.gnome.org/show_bug.cgi?id=796655
2018-08-30 17:17:57 +02:00
Nirbheek Chauhan
783e6a226d scripts: Fix fetching of meson command to run
Don't assume that meson is always a python script, on Windows it can
be (and soon will almost always be) an executable.

See: Meson MSI installer and https://github.com/mesonbuild/meson/pull/4004
2018-08-11 02:52:51 +05:30
Thibault Saunier
8f5533c1e1 Add a script to checkout a worktree of gst-build and its subprojects
https://bugzilla.gnome.org/show_bug.cgi?id=794519
2018-03-20 09:22:19 -03:00