[Pkg-crosswire-devel] Location of Git repos?

Dimitri John Ledkov xnox at debian.org
Wed Oct 22 17:29:56 BST 2014


On 22 October 2014 15:40, Roberto C. Sánchez <roberto at connexer.com> wrote:
> I am not familiar with dgit. Should I be using that instead?
>

Maybe, it's a relatively new tool that Ian Jackson hacked up at
Debconf 2013 in Switzerland in reponse to "git dpkg source format"
discussions to create something sensible and simple.

In essence, $ dgit clone pkg, gives you pretty much the same directory
as $ apt-get source pkg.

One can, operate on it as one would normally do. But the nifty things
are $ dgit build -S; and $ dgit sbuild. Which would do what one would
expect.
Ones ready, git add .; git commit -m "releasing whatever". And do $ dgit push

The bits that dgit push does are awesome:
- verifies that current tree hash, matches the hash of the to be
uploaded .dsc and that the binaries build where in fact build from
that tree hash
- checks the versions in the archive, and generates appropriate
.changes file with correct -v version passed (and thus includes
correct changelog entries when package is uploaded into unstable from
experimental for example)
- tags the commit
- pushes the git branches and tags
- dput uploads the signed .changes to the archive.

Thus, it's a step up from $ apt-get source, where a lot of mundane
things that must be correct - are automated. This also prevents
accidently uploading things into wrong pockets.

The beauty of it, is when it notices that archive has an upload that
is not in the dgit repository, then it does dsc-import of it and
merges local changes. Thus incorporation NMUs is as trivial as dgit
pull. Also it prevents dgit repository mismatch with the archive, as
the git push and dput commands are atomically together / in-sync.

I find it trivial to start using. More details in the man-pages. I'm
happy to assist if you have any queries.


Regards,

Dimitri.


> Regards,
>
> -Roberto
>
> On October 22, 2014 7:46:33 AM EDT, Dimitri John Ledkov <xnox at debian.org> wrote:
>>On 22 October 2014 02:48, Roberto C. Sánchez <roberto at connexer.com>
>>wrote:
>>> I am curious about the locations of the Git repos.
>>>
>>
>>I use dgit exclusively, thus git repositories are under dgit-repos
>>namespace and are available in a standard* form to any DD.
>>
>>$ dgit clone sword
>>
>>should work.
>>
>>I believe old bzr repositories should be removed. Dgit provides round
>>trip guarantees between the git repository tree hash and the tree hash
>>of dsc source package that was uploaded into the archive.
>>(At the moment it does however mean that .pc directory needs to be
>>committed)
>>Another nice property of dgit is that it can operate independent of
>>other git repositories used for maintenance and/or direct into archive
>>nmu uploads and etc.
>>
>>> We have a git repository for sword here:
>>> git.debian.org/git/pkg-crosswire/sword.git
>>>
>>> However, the changelog in that repository shows a latest entry for
>>> version 1.7.2+dfsg-2, while looking at the package listing
>>> (http://packages.debian.org/src:sword) shows a package for
>>1.7.3+dfsg-2
>>> currently in jessie/sid.  Has the repository been relocated, or is it
>>> just that not all commits have been pushed?
>>>
>>> As far as bibletime goes, there does not appear to be a repository
>>for
>>> that package.  Is that deliberate?  I am guessing that the package
>>has
>>> perhaps not seen enough activity for anyone to go to the trouble of
>>> setting up a Git repo (only 4 non-NMU uploads in the last 2.5 years).
>>>
>>> I am going to ahead and set one up in order to complete the work for
>>> #758121.  Hopefully we can start using it for future packaging work
>>on
>>> bibletime.
>>>
>>> Regards,
>>>
>>> -Roberto
>>>
>>> --
>>> Roberto C. Sánchez
>>> http://people.connexer.com/~roberto
>>> http://www.connexer.com
>>>
>>> _______________________________________________
>>> Pkg-crosswire-devel mailing list
>>> Pkg-crosswire-devel at lists.alioth.debian.org
>>>
>>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel
>>
>>
>>
>>--
>>Regards,
>>
>>Dimitri.
>>
>>_______________________________________________
>>Pkg-crosswire-devel mailing list
>>Pkg-crosswire-devel at lists.alioth.debian.org
>>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel
>
> --
> Roberto C. Sánchez
> http://people.connexer.com/~roberto
> http://www.connexer.com
>
> _______________________________________________
> Pkg-crosswire-devel mailing list
> Pkg-crosswire-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel



-- 
Regards,

Dimitri.




More information about the Pkg-crosswire-devel mailing list