On Sun, Sep 09, 2018 at 03:49:13PM +0200, Guido Günther wrote:
> Hi,
> On Sat, Sep 08, 2018 at 06:50:36AM -0400, Jeremy Bicha wrote:
> > Source: git-buildpackage
> > Version: 0.9.10
> > Severity: wishlist
> > 
> > The Debian GNOME team uses gbp import-orig with the upstream-vcs-tag
> > feature to include full upstream commit history. Some GNOME modules
> > still use old CVS-style tagging conventions. [1] While I've asked the
> > maintainers to switch to a more modern format, some maintainers don't
> > want to change.
> > 
> > For those that use a modern format, we can add something like this to
> > debian/gbp.conf to make things easier on the Debian packager:
> > upstream-vcs-tag = %(version)s
> 
> Something similar to cb03293bd7e95e3e6a56947dff79c2afad8e3701 would be
> needed then.

I just remembered that it's there already:

```
Some upstreams use other formats though and don't separate numbers by
dots but rather by underscore(_), hyphen(-) or anything else. In order
to cope with that you can use version mangling of these characters via
substitution. The substitution works as follows:

[DEFAULT]
upstream-tag = v%(version%.%_)s

This means that each occurrence of . will be replaced by _ in the
upstream version number. For example the upstream version 1.2.3 as
determined from the debian/changelog will be looked up as Git™ tag
v1_2_3 by gbp buildpackage.
```

see


   
http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.import.upstream-git.html

for details.
 -- Guido

Reply via email to