Bug#475571: Faced the same issue as reported in #475571

2008-09-07 Thread Guido Günther
On Sat, Sep 06, 2008 at 11:43:01PM +0400, Nikita V. Youshchenko wrote:
 I tried to import one of my packages, namely libetpan, into a git repo, and 
 faced the exact situation described in #475571. After importing released 
 package versions, new orig.tar.gz failed to merge because git attempted to 
 apply old changes in upsteam branch to debian branch while those have 
 already been there.
 My debian packaging does not touch anything outside of debian/ but still 
 merge failed because (as far as I understand) while merging, patch from 
 upstream version A to upstream version B failed to apply on master branch 
 because it already contained change from version B to version C touching 
 same file parts.
Please provide a way to reproduce this.
 -- Guido



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#475571: Faced the same issue as reported in #475571

2008-09-07 Thread Nikita V. Youshchenko
  I tried to import one of my packages, namely libetpan, into a git
  repo, and faced the exact situation described in #475571. After
  importing released package versions, new orig.tar.gz failed to merge
  because git attempted to apply old changes in upsteam branch to debian
  branch while those have already been there.
  My debian packaging does not touch anything outside of debian/ but
  still merge failed because (as far as I understand) while merging,
  patch from upstream version A to upstream version B failed to apply on
  master branch because it already contained change from version B to
  version C touching same file parts.

 Please provide a way to reproduce this.

Please dowload 
http://yoush.homelinux.org:8079/nikita/libetpan-packages.tar.bz2 (11M)

It contains several previously-released vesions of libetpan debian source 
packages in libetpan/old/, and a new upstream tarball in libetpan/new/

Then run:

tar xjf libetpan-packages.tar.bz2
cd libetpan
git-import-dscs old/*.dsc

This will create a git repo in libetpan/ and import previous packages 
there. All upstream versions will reside in 'upstram' branch, all debian 
packages will reside on 'master' branch.

Then run

cd libetpan
git-import-orig ../new/libetpan-0.56.tar.gz

This will result into lots of conflicts.


I was able to workaround this by replacing signle
'git-import-dscs old/*.dsc' command with the following procedule:

- import first upstream tarball (0.45) using git-import-orig,
- import debian packages created for that upstream version (0.45-1 .. 
0.45-4) one-by-one using git-import-dsc,
- importing next upstream tarball (0.46) using git-import-orig,
- manually merge upstream branch into master branch,
- import debian packages  created for that upstream version (0.46-1 .. 
0.46-4) one-by-one using git-import-dsc,
- repeat last 3 steps for all next upstream versions.

After this procedure, git-import-orig successfully imported the new 
upstream tarball, without any conflicts.

I believe git-import-dscs should do something similar.

WBR,

Nikita

P.S.
Please notify me when I may delete libetpan-packages.tar.bz2 from the above 
URL.


signature.asc
Description: This is a digitally signed message part.


Bug#475571: Faced the same issue as reported in #475571

2008-09-06 Thread Nikita V. Youshchenko
Hi

I tried to import one of my packages, namely libetpan, into a git repo, and 
faced the exact situation described in #475571. After importing released 
package versions, new orig.tar.gz failed to merge because git attempted to 
apply old changes in upsteam branch to debian branch while those have 
already been there.
My debian packaging does not touch anything outside of debian/ but still 
merge failed because (as far as I understand) while merging, patch from 
upstream version A to upstream version B failed to apply on master branch 
because it already contained change from version B to version C touching 
same file parts.

After thinking a bit, I was going to suggest a solution similar to one by 
Matej Vela suggested in this bug, but not exactly the same. I suggest to 
automatically merge upstream into debian, but not after importing each 
dsc, but after importing of each new orig.
Which is probably the same, but not 100% sure.

Btw, please fix this issue - there are already at least two maintainers 
(Matej Vela and myself) who faced it :)

Regards,

Nikita


signature.asc
Description: This is a digitally signed message part.