[Digikam-devel] All kipi-plugins are gone ...
Matthias Welwarsky
matthias at welwarsky.de
Sun Mar 18 07:50:03 GMT 2012
On Saturday 17 March 2012 23:47:21 Ananta Palani wrote:
> Matthias,
>
> I check my own code, which is what I pushed into master. How am I supposed
> to know that code pushed ahead of my commit is faulty? Seems like it is the
> responsibility of the other developers, in this case Supreet. Also, I see
> that other developers also merge with master in a similar fashion (4
> separate developers this month!). How else is this supposed to be done?
Ah yes. I apologize, I misunderstood how the merge went. You were committing
on master, and the branch display in gitk makes it look like the faulty commit
was in a branch you merged with master. Hence I assumed you were working on a
separate branch together with Supreet and merged his code with your commit.
That assumption was wrong. I'm sorry.
> Here's how this situation arose. I commit to master. I try to push my
> changes, oops, there are changes ahead of mine. So I pull, merge, push.
> Even if I were to pull before I commit, there is a chance someone else will
> push in between my last pull, and my commit and push attempt.
I wrote a pretty lengthy description about that not too long ago.
The abridged version is:
- Always use "git pull --rebase" to update from master
- Use "git rebase origin/master" to eliminate accidental merge commits.
Gilles, this also applies to your commits.
There is almost never a need to do anything else. Merges are really not
required, unless you have worked on a separate topic outside of master and
absolutely want to preserve the commit history of the topic branch after the
merge.
regards,
matthias
>
> On Sat, Mar 17, 2012 at 9:16 PM, Matthias Welwarsky
>
> <matthias at welwarsky.de>wrote:
> > OK, pretty simple:
> >
> > It's the patches merged by Ananta Palani, in particular this one:
> >
> > commit 8453c8f2def5e917d731aa636eced77e79d4a4a2
> > Author: Supreet Pal Singh <supreetpal at gmail.com>
> > Date: Sat Mar 17 01:32:07 2012 +0530
> >
> > Removed the code from setup
> >
> > It removes the loadPlugins() call from the Constructor of
> > KipiPluginLoader class
> >
> > Ananta, can you _please_ check what you are pushing into master? And
> > please,
> > do not do merge commits. It's very annoying and difficult to eliminate
> > single
> > patches out of a merge, or even to remove the merge patch entirely.
> >
> > See man git-merge:
> > -m parent-number, --mainline parent-number
> >
> > Usually you cannot revert a merge because you do not
> > know which
> >
> > side of the merge should be considered the
> >
> > mainline. This option specifies the parent number
> > (starting from>
> > 1)
> > of the mainline and allows revert to reverse
> >
> > the change relative to the specified parent.
> >
> > Reverting a merge commit declares that you will
> > never want the
> >
> > tree
> > changes brought in by the merge. As a result,
> >
> > later merges will only bring in tree changes
> > introduced by
> >
> > commits
> > that are not ancestors of the previously
> >
> > reverted merge. This may or may not be what you
> > want.
> >
> > See the revert-a-faulty-merge How-To[1] for more
> > details.
> >
> > This is the How-To mentioned, and if your head is spinning after reading
> > it,
> > you know why merge commits should not happen if you just want to push
> > changes
> > into the master branch:
> >
> >
> > http://code.google.com/p/git-core/source/browse/Documentation/howto/reve
> > rt-a- faulty-merge.txt
> >
> > In my opinion, there is almost never a need for merge commits. Even
> > after
> > you
> > merged from some other branch, you should still rebase onto the head of
> > the remote master branch before you commit.
> >
> > On Saturday 17 March 2012 21:31:38 Matthias Welwarsky wrote:
> > > Same here, current git master, completely uninstalled, deleted the
> > > build directory and re-made everything. no kipi-plugins whatsoever.
> > >
> > > I'm guessing: Some symbol vanished and dlopen fails when the plugin
> > > is
> > > loaded?
> > >
> > > regards,
> > > matthias
> > >
> > > On Saturday 17 March 2012 19:18:03 Veaceslav Munteanu wrote:
> > > > Hello.
> > > >
> > > > I was working with my students on bugs when after a git pull and
> > > > new
> > > > build, all kipi-plugins are missing.
> > > > We have the same problem on all 3 computers and it's a result of
> > > > a
> > > > recent
> > > > commit, because i pulled this morning and everything was ok and
> > > > after a hour it was broken.
> > > >
> > > > Can you help me?
> > >
> > > _______________________________________________
> > > Digikam-devel mailing list
> > > Digikam-devel at kde.org
> > > https://mail.kde.org/mailman/listinfo/digikam-devel
> >
> > _______________________________________________
> > Digikam-devel mailing list
> > Digikam-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-devel
More information about the Digikam-devel
mailing list