Package: devscripts
Version: 2.10.43
Severity: wishlist
Hi!
Is it possible to make uscan get the revision/version/etc of remote VCS
repositories, please?
For example, it's possible to get the last revision of a SVN repository:
$ svn info http://svn.collab.net/repos/svn/trunk/
Path: trunk
URL: http://svn.collab.net/repos/svn/trunk
Repository Root: http://svn.collab.net/repos/svn
Repository UUID: 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a
Revision: 34877
Node Kind: directory
Last Changed Author: rhuijben
Last Changed Rev: 34876
Last Changed Date: 2008-12-20 10:28:17 -0200 (Sat, 20 Dec 2008)
(probably the other VCS have a similar function)
Then we would use something that says "get the latest revision from foo" inside
the watch file and use it to watch packages that use the VCS version/revision
on them.
A practical example: checkgmail uses dversionmangle in its watch file to remove
the +svn part from the version.
version=3
opts=dversionmangle=s/\+svn\d+$// \
http://sf.net/checkgmail/checkgmail-([\d.]*)\.tar\.bz2
With the usage of VCS, it could be (just an idea):
version=X
vcs=svn=https://checkgmail.svn.sourceforge.net/svnroot/checkgmail \
[plus some more magic here]
Then instead getting this:
$ uscan --report-status
Processing watchfile line for package checkgmail...
Newest version on remote site is 1.13, local version is 1.13+svn37
(mangled local version number 1.13)
=> Package is up to date
We would get this:
$ uscan --report-status
Processing watchfile line for package checkgmail...
Newest version on remote site is 1.13+svn37, local version is 1.13+svn37
=> Package is up to date
Thank you very much!
Best regards,
Nelson
--
To unsubscribe, send mail to [email protected].