* Diff between Branches
@ 2009-10-31 12:36 Carles Pina i Estany
2009-10-31 13:26 ` Colin Watson
2009-10-31 13:44 ` Robert Millan
0 siblings, 2 replies; 5+ messages in thread
From: Carles Pina i Estany @ 2009-10-31 12:36 UTC (permalink / raw)
To: grub-devel
Hi,
I'm novice with Bazaar.
I would like to diff between gettext branch and trunk. I did:
bzr branch http://bzr.savannah.gnu.org/r/grub/people/robertmh/gettext/
cd gettext
bzr diff -r branch:http://bzr.savannah.gnu.org/r/ub/trunk/grub
But I have some unexpected results like adding files and removing files
that I would not expect:
=== added file 'AUTHORS'
--- AUTHORS 1970-01-01 00:00:00 +0000
+++ AUTHORS 2009-10-31 12:19:08 +0000
and then:
=== removed file 'AUTHORS'
--- AUTHORS 2005-09-03 16:54:27 +0000
+++ AUTHORS 1970-01-01 00:00:00 +0000
The content of the "old2 and "new" AUTHORS files looks similar, even
though the date is not similar :-)
Am I doing something in the incorrect way? Or I'm doing it in bad
timing?
Thanks,
--
Carles Pina i Estany
http://pinux.info
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Diff between Branches
2009-10-31 12:36 Diff between Branches Carles Pina i Estany
@ 2009-10-31 13:26 ` Colin Watson
2009-10-31 13:45 ` Robert Millan
2009-10-31 13:44 ` Robert Millan
1 sibling, 1 reply; 5+ messages in thread
From: Colin Watson @ 2009-10-31 13:26 UTC (permalink / raw)
To: The development of GRUB 2
On Sat, Oct 31, 2009 at 12:36:57PM +0000, Carles Pina i Estany wrote:
> I'm novice with Bazaar.
> I would like to diff between gettext branch and trunk. I did:
>
> bzr branch http://bzr.savannah.gnu.org/r/grub/people/robertmh/gettext/
> cd gettext
> bzr diff -r branch:http://bzr.savannah.gnu.org/r/ub/trunk/grub
>
> But I have some unexpected results like adding files and removing files
> that I would not expect:
>
> === added file 'AUTHORS'
> --- AUTHORS 1970-01-01 00:00:00 +0000
> +++ AUTHORS 2009-10-31 12:19:08 +0000
>
> and then:
> === removed file 'AUTHORS'
> --- AUTHORS 2005-09-03 16:54:27 +0000
> +++ AUTHORS 1970-01-01 00:00:00 +0000
This usually means that there is a problem with the way the branches
were created or with the way they've been managed, such that the files
in each branch do not have common ancestry. (Bazaar assigns each file a
unique file-id in order to support good rename tracking, and will only
consider two files to be different versions of the same file if they
have the same file-id; you can see the file-id with e.g. 'bzr ls
--show-ids'.)
I haven't looked at these two branches to find out exactly what's
happened.
--
Colin Watson [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Diff between Branches
2009-10-31 12:36 Diff between Branches Carles Pina i Estany
2009-10-31 13:26 ` Colin Watson
@ 2009-10-31 13:44 ` Robert Millan
1 sibling, 0 replies; 5+ messages in thread
From: Robert Millan @ 2009-10-31 13:44 UTC (permalink / raw)
To: The development of GRUB 2
On Sat, Oct 31, 2009 at 12:36:57PM +0000, Carles Pina i Estany wrote:
>
> Hi,
>
> I'm novice with Bazaar.
> I would like to diff between gettext branch and trunk. I did:
>
> bzr branch http://bzr.savannah.gnu.org/r/grub/people/robertmh/gettext/
The gettext branch was based on an old trunk, I've just regenerated it,
try branching again.
> bzr diff -r branch:http://bzr.savannah.gnu.org/r/ub/trunk/grub
>
> But I have some unexpected results like adding files and removing files
> that I would not expect:
Is this what you wanted?
bzr diff -r ancestor:bzr+ssh://bzr.savannah.gnu.org/grub/trunk/grub
Btw, if you're just trying to resync, it's better if you use bzr for that,
e.g.:
$ bzr pull bzr+ssh://bzr.savannah.gnu.org/grub/trunk/grub
bzr: ERROR: These branches have diverged. Use the missing command to see how.
Use the merge command to reconcile them.
$ bzr merge bzr+ssh://bzr.savannah.gnu.org/grub/trunk/grub
[...]
Text conflict in conf/common.rmk
Text conflict in kern/misc.c
Text conflict in util/grub-mkconfig_lib.in
Text conflict in util/grub.d/00_header.in
Text conflict in util/grub.d/10_linux.in
5 conflicts encountered.
<some manual work with conf/common.rmk and conf/common.rmk.*>
$ bzr resolve conf/common.rmk
<repeat untill all conflicts are resolved, then commit>
After this is done, you can push to /people/<your-dir>/gettext or so.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Diff between Branches
2009-10-31 13:26 ` Colin Watson
@ 2009-10-31 13:45 ` Robert Millan
2009-10-31 14:23 ` Colin Watson
0 siblings, 1 reply; 5+ messages in thread
From: Robert Millan @ 2009-10-31 13:45 UTC (permalink / raw)
To: The development of GRUB 2
On Sat, Oct 31, 2009 at 01:26:22PM +0000, Colin Watson wrote:
>
> This usually means that there is a problem with the way the branches
> were created or with the way they've been managed, such that the files
> in each branch do not have common ancestry.
I had to regenerate the commits one by one (fortunately there weren't many).
Do you know a more efficient way?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Diff between Branches
2009-10-31 13:45 ` Robert Millan
@ 2009-10-31 14:23 ` Colin Watson
0 siblings, 0 replies; 5+ messages in thread
From: Colin Watson @ 2009-10-31 14:23 UTC (permalink / raw)
To: The development of GRUB 2
On Sat, Oct 31, 2009 at 02:45:49PM +0100, Robert Millan wrote:
> On Sat, Oct 31, 2009 at 01:26:22PM +0000, Colin Watson wrote:
> > This usually means that there is a problem with the way the branches
> > were created or with the way they've been managed, such that the files
> > in each branch do not have common ancestry.
>
> I had to regenerate the commits one by one (fortunately there weren't many).
>
> Do you know a more efficient way?
It may be possible to use the 'bzr replay' command from the bzr-rebase
plugin. I don't use this often myself, but it seems like nominally the
right answer.
--
Colin Watson [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-31 14:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31 12:36 Diff between Branches Carles Pina i Estany
2009-10-31 13:26 ` Colin Watson
2009-10-31 13:45 ` Robert Millan
2009-10-31 14:23 ` Colin Watson
2009-10-31 13:44 ` Robert Millan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.