Skip to content

Commit 53d96d1

Browse files
committed
Rename svn_root -> git_root
1 parent 459a71d commit 53d96d1

8 files changed

Lines changed: 41 additions & 27 deletions

File tree

main/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ArchAdmin(admin.ModelAdmin):
1717

1818

1919
class RepoAdmin(admin.ModelAdmin):
20-
list_display = ('name', 'testing', 'staging', 'bugs_project', 'bugs_category', 'svn_root')
20+
list_display = ('name', 'testing', 'staging', 'bugs_project', 'bugs_category', 'git_root')
2121
list_filter = ('testing', 'staging')
2222
search_fields = ('name',)
2323

main/fixtures/repos.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"staging": false,
88
"name": "Extra-Testing",
99
"bugs_project": 5,
10-
"svn_root": "packages",
10+
"git_root": "packages",
1111
"testing": true
1212
}
1313
},
@@ -19,7 +19,7 @@
1919
"staging": true,
2020
"name": "Extra-Staging",
2121
"bugs_project": 5,
22-
"svn_root": "packages",
22+
"git_root": "packages",
2323
"testing": false
2424
}
2525
},
@@ -31,7 +31,7 @@
3131
"staging": false,
3232
"name": "Core",
3333
"bugs_project": 1,
34-
"svn_root": "packages",
34+
"git_root": "packages",
3535
"testing": false
3636
}
3737
},
@@ -43,7 +43,7 @@
4343
"staging": false,
4444
"name": "Extra",
4545
"bugs_project": 1,
46-
"svn_root": "packages",
46+
"git_root": "packages",
4747
"testing": false
4848
}
4949
},
@@ -55,7 +55,7 @@
5555
"staging": true,
5656
"name": "Gnome-Unstable",
5757
"bugs_project": 1,
58-
"svn_root": "packages",
58+
"git_root": "packages",
5959
"testing": false
6060
}
6161
},
@@ -67,7 +67,7 @@
6767
"staging": true,
6868
"name": "KDE-Unstable",
6969
"bugs_project": 1,
70-
"svn_root": "packages",
70+
"git_root": "packages",
7171
"testing": false
7272
}
7373
},
@@ -79,7 +79,7 @@
7979
"staging": false,
8080
"name": "Multilib",
8181
"bugs_project": 5,
82-
"svn_root": "community",
82+
"git_root": "community",
8383
"testing": false
8484
}
8585
},
@@ -91,7 +91,7 @@
9191
"staging": true,
9292
"name": "Multilib-Staging",
9393
"bugs_project": 5,
94-
"svn_root": "community",
94+
"git_root": "community",
9595
"testing": false
9696
}
9797
},
@@ -103,7 +103,7 @@
103103
"staging": false,
104104
"name": "Multilib-Testing",
105105
"bugs_project": 5,
106-
"svn_root": "community",
106+
"git_root": "community",
107107
"testing": true
108108
}
109109
},
@@ -115,7 +115,7 @@
115115
"staging": true,
116116
"name": "Staging",
117117
"bugs_project": 1,
118-
"svn_root": "packages",
118+
"git_root": "packages",
119119
"testing": false
120120
}
121121
},
@@ -127,7 +127,7 @@
127127
"staging": false,
128128
"name": "Core-Testing",
129129
"bugs_project": 1,
130-
"svn_root": "packages",
130+
"git_root": "packages",
131131
"testing": true
132132
}
133133
},
@@ -139,7 +139,7 @@
139139
"staging": true,
140140
"name": "Core-Staging",
141141
"bugs_project": 1,
142-
"svn_root": "packages",
142+
"git_root": "packages",
143143
"testing": false
144144
}
145145
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.13 on 2026-04-11 11:33
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('main', '0005_merge_0004_rebuilderdstatus_build_id_0004_soname'),
10+
]
11+
12+
operations = [
13+
migrations.RenameField(
14+
model_name='repo',
15+
old_name='svn_root',
16+
new_name='git_root',
17+
),
18+
]

main/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class Repo(models.Model):
7474
default=1, help_text="Flyspray project ID for this repository.")
7575
bugs_category = models.SmallIntegerField(
7676
default=2, help_text="Flyspray category ID for this repository.")
77-
svn_root = models.CharField(
78-
max_length=64, help_text="SVN root (e.g. path) for this repository.")
77+
git_root = models.CharField(
78+
max_length=64, help_text="Git root (e.g. path) for this repository.")
7979

8080
def __str__(self):
8181
return self.name

settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@
181181
PGP_SERVER = 'keyserver.ubuntu.com'
182182
PGP_SERVER_SECURE = True
183183

184-
# URL for SVN access for fetching commit messages (note absence of packages or
185-
# community bit on the end, repo.svn_root is appended)
186-
SVN_BASE_URL = 'svn://svn.archlinux.org/'
187-
188184
GITLAB_PACKAGES_REPO = 'https://gitlab.archlinux.org/archlinux/packaging/packages'
189185
GITLAB_PACKAGE_REPO = 'archlinux/packaging/packages'
190186
GITLAB_INSTANCE = 'gitlab.archlinux.org'

templates/todolists/view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ <h2>{{ list.kind_str | title }} Todo List {{ list.name }}</h2>
3333

3434
<div class="todo-pkgbases">
3535
<p>Link to lists of pkgbase values:</p>
36-
<ul>{% for svn_root in svn_roots %}
37-
<li><a href="pkgbases/{{ svn_root }}/">{{ svn_root }}</a></li>
36+
<ul>{% for git_root in git_roots %}
37+
<li><a href="pkgbases/{{ git_root }}/">{{ git_root }}</a></li>
3838
{% endfor %}</ul>
3939
</div>
4040

todolists/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
permission_required('todolists.delete_todolist')(DeleteTodolist.as_view())),
2626
re_path(r'^(?P<slug>[-\w]+)/flag/(?P<pkg_id>\d+)/$',
2727
permission_required('todolists.change_todolistpackage')(flag)),
28-
re_path(r'^(?P<slug>[-\w]+)/pkgbases/(?P<svn_root>[a-z]+)/$',
28+
re_path(r'^(?P<slug>[-\w]+)/pkgbases/(?P<git_root>[a-z]+)/$',
2929
list_pkgbases),
3030
]
3131

todolists/views.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def flag(request, slug, pkg_id):
5959

6060
def view(request, slug):
6161
todolist = get_object_or_404(Todolist, slug=slug)
62-
svn_roots = Repo.objects.values_list(
63-
'svn_root', flat=True).order_by().distinct()
62+
git_roots = Repo.objects.values_list(
63+
'git_root', flat=True).order_by().distinct()
6464
# we don't hold onto the result, but the objects are the same here,
6565
# so accessing maintainers in the template is now cheap
6666
attach_maintainers(todolist.packages())
@@ -69,17 +69,17 @@ def view(request, slug):
6969
repos = {tp.repo for tp in todolist.packages()}
7070
context = {
7171
'list': todolist,
72-
'svn_roots': svn_roots,
72+
'git_roots': git_roots,
7373
'arches': sorted(arches),
7474
'repos': sorted(repos),
7575
}
7676
return render(request, 'todolists/view.html', context)
7777

7878

79-
def list_pkgbases(request, slug, svn_root):
79+
def list_pkgbases(request, slug, git_root):
8080
'''Used to make bulk moves of packages a lot easier.'''
8181
todolist = get_object_or_404(Todolist, slug=slug)
82-
repos = get_list_or_404(Repo, svn_root=svn_root)
82+
repos = get_list_or_404(Repo, git_root=git_root)
8383
pkgbases = TodolistPackage.objects.values_list(
8484
'pkgbase', flat=True).filter(
8585
todolist=todolist, repo__in=repos, removed__isnull=True).order_by(

0 commit comments

Comments
 (0)