chore: Update 'master -> canon' in various places
Change-Id: I901c023f707a0223af673c217c65434e26e2ab1f Reviewed-on: https://cl.tvl.fyi/c/depot/+/568 Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
14317eea79
commit
8dedf9d0be
4 changed files with 7 additions and 7 deletions
|
@ -49,13 +49,13 @@ and all development happens at `HEAD`.
|
||||||
Every time you create a new commit the change hook will insert a unique
|
Every time you create a new commit the change hook will insert a unique
|
||||||
`Change-Id` tag into the commit message. Once you are satisfied with the state
|
`Change-Id` tag into the commit message. Once you are satisfied with the state
|
||||||
of your commit and want to submit it for review, you push it to a git ref called
|
of your commit and want to submit it for review, you push it to a git ref called
|
||||||
`refs/for/master`. This designates the commits as changelists (CLs) targeted for
|
`refs/for/canon`. This designates the commits as changelists (CLs) targeted for
|
||||||
the `master` branch.
|
the `canon` branch.
|
||||||
|
|
||||||
```
|
```
|
||||||
Example:
|
Example:
|
||||||
git commit -m 'docs(REVIEWS): Fixed all the errors in the reviews docs'
|
git commit -m 'docs(REVIEWS): Fixed all the errors in the reviews docs'
|
||||||
git push origin HEAD:refs/for/master
|
git push origin HEAD:refs/for/canon
|
||||||
```
|
```
|
||||||
|
|
||||||
TIP: Every individual commit will become a separate change. We do not merge
|
TIP: Every individual commit will become a separate change. We do not merge
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
with depot.third_party; buildGoPackage rec {
|
with depot.third_party; buildGoPackage rec {
|
||||||
name = "kontemplate-${version}";
|
name = "kontemplate-${version}";
|
||||||
version = "master";
|
version = "canon";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
goPackagePath = "github.com/tazjin/kontemplate";
|
goPackagePath = "github.com/tazjin/kontemplate";
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
|
@ -18,7 +18,7 @@ let pkgs = import ((import <nixpkgs> {}).fetchFromGitHub {
|
||||||
}) {};
|
}) {};
|
||||||
in with pkgs; buildGoPackage rec {
|
in with pkgs; buildGoPackage rec {
|
||||||
name = "kontemplate-${version}";
|
name = "kontemplate-${version}";
|
||||||
version = "master";
|
version = "canon";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
goPackagePath = "github.com/tazjin/kontemplate";
|
goPackagePath = "github.com/tazjin/kontemplate";
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
|
@ -48,11 +48,11 @@ def gerritobsolete(ui, repo, **opts):
|
||||||
if not drafts:
|
if not drafts:
|
||||||
return
|
return
|
||||||
publicparent = next(repo.set(
|
publicparent = next(repo.set(
|
||||||
b'ancestor((public() and bookmark("master")), %s)' % (
|
b'ancestor((public() and bookmark("canon")), %s)' % (
|
||||||
b', '.join(x.hex() for x in drafts))))
|
b', '.join(x.hex() for x in drafts))))
|
||||||
megare = b're:(?ms)^Change-Id: (%s)$' % (b'|'.join(changesets.keys()),)
|
megare = b're:(?ms)^Change-Id: (%s)$' % (b'|'.join(changesets.keys()),)
|
||||||
markers = []
|
markers = []
|
||||||
for public in repo.set('(%s..(public() and master)) and desc(%s)', publicparent, megare):
|
for public in repo.set('(%s..(public() and canon)) and desc(%s)', publicparent, megare):
|
||||||
match = _changeid_regex.search(public.description())
|
match = _changeid_regex.search(public.description())
|
||||||
if not match:
|
if not match:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue