Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#10905 - [patch] makepkg check for latest svn revision is slow on large repositories
Attached to Project:
Pacman
Opened by . (Thralas) - Sunday, 13 July 2008, 23:40 GMT
Last edited by Dan McGee (toofishes) - Sunday, 20 July 2008, 15:11 GMT
Opened by . (Thralas) - Sunday, 13 July 2008, 23:40 GMT
Last edited by Dan McGee (toofishes) - Sunday, 20 July 2008, 15:11 GMT
|
DetailsPrior to installing or building a package which utilizes SVN sources makepkg will retrieve the latest revision number. Currently 'svn log' is used to determine the latest revision, which seems fine for smaller SVN repositories (e.g. Google's protobuf project), however on large ones (such as the Mono repository) the command seems to take a huge amount of time.
'svn info' provides the latest revision as well, being slightly slower on small repositories, but the time required seems to be consistent, as opposed to 'svn log'. Example: `time svn log http://protobuf.googlecode.com/svn/trunk/ --limit 1` -> ~2.0s `time svn info http://protobuf.googlecode.com/svn/trunk/` -> ~2.5s `time svn log svn://anonsvn.mono-project.com/source/trunk/mono --limit 1` -> ~35.0s `time svn info svn://anonsvn.mono-project.com/source/trunk/mono` -> 3.5s I've attached a git-diff which replaces 'svn log' by 'svn info'. |
This task depends upon
Closed by Dan McGee (toofishes)
Sunday, 20 July 2008, 15:11 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented in git by commit 0bf66b097fc8ccb394cb910764d171476e15d124
Sunday, 20 July 2008, 15:11 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented in git by commit 0bf66b097fc8ccb394cb910764d171476e15d124
makepkg.svn-info.patch
$ LANG=de_DE.utf8 svn info http://protobuf.googlecode.com/svn/trunk/
Pfad: trunk
URL: http://protobuf.googlecode.com/svn/trunk
Basis des Projektarchivs: http://protobuf.googlecode.com/svn
UUID des Projektarchivs: 630680e5-0e50-0410-840e-4b1c322b438d
Revision: 2
Knotentyp: Verzeichnis
Letzter Autor: temporal
Letzte geänderte Rev: 2
Letztes Änderungsdatum: 2008-07-09 21:12:20 -0500 (Mi, 09 Jul 2008)
+1 for this way if it gives a 10x speedup with some repo.