Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10901

Re: [Debian PAPT] Question about salsa repo and packaging

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Sergio Durigan Junior <sergiodj@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: [Debian PAPT] Question about salsa repo and packaging
Date Sun, 16 Sep 2018 07:40:01 +0200
Message-ID <wyxWN-5OC-3@gated-at.bofh.it> (permalink)
References <wykZz-6CG-1@gated-at.bofh.it>
X-Original-To Hilmar Preuße <hille42@web.de>
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Sep 16 05:32:36 2018
Old-Return-Path <sergiodj@sergiodj.net>
X-Amavis-Spam-Status No, score=-6.879 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
X-URL http://blog.sergiodj.net
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
MIME-Version 1.0
Content-Type multipart/signed; boundary="=-=-=";
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16328
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/87ftyaatyi.fsf@debian.org
Approved robomod@news.nic.it
Lines 96
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Sun, 16 Sep 2018 01:32:05 -0400
X-Original-Message-ID <87ftyaatyi.fsf@debian.org>
X-Original-References <ee655afb-b058-afb7-7622-b4e57111a23b@web.de>
Xref csiph.com linux.debian.maint.python:10901

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Saturday, September 15 2018, Hilmar Preuße wrote:

> Hi,

Hey,

> I'm maintaining the package rubber in the PAPT. I have a few question:
>
> 1. I'd like to revert some changes to the salsa repo for my package, as
> these changes were never uploaded to Debian and are not superseded by
> new upstream package. Is it OK to do a "git reset --hard xxxx" to make
> them disappear in my repository?

You mean do a "git reset --hard" locally and then "git push" the
modified history?  This is not ideal, but if you're the only one using
the repository, and if there was no Debian release containing the code
you're reverting, then I'd say it's OK.

> 2. My repo contains a stale branch called "svn". It was created during
> the git -> salsa migration. AFAICT this branch contains obsolete
> versions of some files. May I kill that branch?

Sorry, I don't the answer to this one.

> 3. Recently I imported a new upstream version. According to [1] I should
> rebase my patches. Unfortunately this fails:
>
> <snip>
> hille@sid:~/devel/rubber/rubber.git $ gbp pq rebase
> gbp:info: Switching to 'patch-queue/debian/master'
> First, rewinding head to replay your work on top of it...
> Applying: more accurate log messages when deciding whether to rebuild
> some file
> Using index info to reconstruct a base tree...
> M	src/depend.py
> Falling back to patching base and 3-way merge...
> Auto-merging src/depend.py
> CONFLICT (content): Merge conflict in src/depend.py
> error: Failed to merge in the changes.
> Patch failed at 0001 more accurate log messages when deciding whether to
> rebuild some file
> hint: Use 'git am --show-current-patch' to see the failed patch
>
> Resolve all conflicts manually, mark them as resolved with
> "git add/rm <conflicted_files>", then run "git rebase --continue".
> You can instead skip this commit: run "git rebase --skip".
> To abort and get back to the state before "git rebase", run "git rebase
> --abort".
>
> gbp:error: Couldn't run git rebase: it exited with 128
> <snip>
>
> Could anybody give me a hint, what it wrong here?

While rebasing the patch-queue, there was a conflict with one of the
files.  A conflict happens when you have two distinct versions of the
same file containing modifications that are not trivial to be
automatically merged by git.  The conflict is marked above as:

  CONFLICT (content): Merge conflict in src/depend.py

You now have to resolve this conflict before proceeding.  Basically,
open the file and look for the conflict markers, which look like:

  <<<<<<< HEAD
  some content
  =======
  some other content
  >>>>>>> some-branch

You will then have to decide how to resolve this, either by deleting one
of the changes, or by adapting them, etc.  Once you resolve all of the
conflicts, you will be able to perform a "git rebase --continue".  Note
that you may encounter many conflicts while rebasing.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[Debian PAPT] Question about salsa repo and packaging Hilmar Preuße <hille42@web.de> - 2018-09-15 17:50 +0200
  Re: [Debian PAPT] Question about salsa repo and packaging Sergio Durigan Junior <sergiodj@debian.org> - 2018-09-16 07:40 +0200
    Re: [Debian PAPT] Question about salsa repo and packaging Elena ``of Valhalla'' <valhalla-d@trueelena.org> - 2018-09-16 09:10 +0200
      Re: [Debian PAPT] Question about salsa repo and packaging Sergio Durigan Junior <sergiodj@debian.org> - 2018-09-16 19:00 +0200
    Re: [Debian PAPT] Question about salsa repo and packaging Hilmar Preuße <hille42@web.de> - 2018-09-22 21:10 +0200

csiph-web