all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: miles@gnu.org, emacs-devel@gnu.org
Subject: Re: base
Date: Fri, 27 Aug 2010 16:52:20 +0300	[thread overview]
Message-ID: <838w3smacr.fsf@gnu.org> (raw)
In-Reply-To: <87r5hk438u.fsf@uwakimon.sk.tsukuba.ac.jp>

> From: "Stephen J. Turnbull" <stephen@xemacs.org>
> Cc: emacs-devel@gnu.org,
>     miles@gnu.org
> Date: Fri, 27 Aug 2010 22:03:13 +0900
> 
>  > > No, you can provide some representative workflows that are enough
>  > > for you.
> 
>  > Actually, I meant some representative workflows that should cover
>  > the common use-cases.
> 
> By "common use cases" you evidently mean "but not anything that a git
> user might want," or even "that a typical user can express in ordinary
> terms and a git user could achieve by manipulating the DAG" (see below
> for an example).

No, I meant use-cases that are of interest to ordinary users, as
opposed to technicians.

>  >   bzr switch THE_OTHER_BRANCH
> 
> Thank you for playing.  Unfortunately, not only isn't that efficient,
> it doesn't work at all without a fair amount of additional explanation:
> 
>   steve@uwakimon /tmp/test/bar $ bzr switch ../foo
>   bzr: ERROR: Cannot switch a branch, only a checkout.

It is documented to work only with checkouts.

> But it's not clear to me whether the obvious change to that workflow,
> ie, checkout from "../foo" in "bar", actually has the semantics of
> git, though, and I bet you have no idea either.  For example, suppose
> I want to merge two branches in that checkout, but preserve the
> possibility of switching to either of the parents in the future.  This
> is trivial in git: git checkout foo; git merge bar; git branch foo^
> old-foo.  The obvious solution in bzr (bzr checkout -r before:) *does
> not work*; it is not a branch and you cannot commit.

Some combination of "bzr merge -r" with appropriately chosen pair of
revision should be able to do the trick, I think.

> (At least,
> that's what the dox say.)  So I expect I'd have to do a bit more
> preparation to get a usable approximation to git colocated branches.

Why bother, if you can easily branch and work in a separate tree?

>  >   cd A && bzr rebase --onto=revno:-3 ../C
> 
> Thank you for playing.  Unfortunately, this doesn't work in several
> cases.  I could get trunk commits or branch B commits I don't want.

I don't understand what didn't work for you, but it could be due to
bugs in `rebase'.

> Translated to non-DAG terms, the scenario is "just add Miles's feature
> and no extra crap".  To expand a bit (but still use only commonly
> understood development concepts), "I just want Drew's branch with
> Miles's feature.  But I don't want anything in Tom's branch that isn't
> required to implement Miles's feature, I don't want any random work
> done on the trunk since C branched, and I don't want the stuff that
> Drew added to C in his last two commits."
> 
> I think "just add Miles's feature and no extra crap" is a reasonable
> thing to want.  It probably would not occur to you to ask your VCS to
> do it unless you understand the DAG, though.

I see no problems doing what you want with a series of "bzr merge"
commands.  "bzr rebase" is simpler, but if it doesn't work, "merge"
will.

And I don't see any reason to "understand the DAG", either.  What's to
understand, anyway? I know what a DAG is, and I think I have some idea
what "bzr merge" does to a history.  I don't pretend being a
technician, but what I know is enough for what I do.  It was enough to
suggest solution to your riddles, even though I never needed to do any
of that.  So what if some of the solutions have limitations or hit
upon bugs? that's not what this was about.

> 1 out of 3 ain't bad. :-)

You are a darling.



  reply	other threads:[~2010-08-27 13:52 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-22 12:06 base Alan Mackenzie
2010-08-22 12:20 ` base Eli Zaretskii
2010-08-22 13:01   ` base Alan Mackenzie
2010-08-22 12:50 ` base Teemu Likonen
2010-08-22 13:20   ` base Eli Zaretskii
2010-08-23 10:38     ` base Uday S Reddy
2010-08-23 11:03       ` base Leo
2010-08-23 12:56         ` base Eli Zaretskii
2010-08-24  4:32         ` base Richard Stallman
2010-08-24  6:01         ` base Stephen J. Turnbull
2010-08-24  7:22           ` base Leo
2010-08-24  8:29             ` base Andreas Schwab
2010-08-24  8:34             ` base Stephen J. Turnbull
2010-08-24  9:10               ` base Miles Bader
2010-08-24 10:03                 ` base Juanma Barranquero
2010-08-24 13:39                   ` base Stephen J. Turnbull
2010-08-24 14:05                   ` base Miles Bader
2010-08-24 15:00                     ` base Andreas Schwab
2010-08-24 16:14                     ` base Juanma Barranquero
2010-08-24 12:32                 ` base Stephen J. Turnbull
2010-08-24 12:51                   ` base Leo
2010-08-24 13:39                   ` base Juanma Barranquero
2010-08-24 14:25                     ` base Óscar Fuentes
2010-08-24 16:18                       ` base Juanma Barranquero
2010-08-24 14:37                     ` base David Kastrup
2010-08-24 16:22                       ` base Juanma Barranquero
2010-08-24 16:38                         ` base David Kastrup
2010-08-24 17:22                           ` base Juanma Barranquero
2010-08-24 17:35                     ` base Stephen J. Turnbull
2010-08-24 17:45                       ` base Frank Schmitt
2010-08-25  4:33                         ` base Stephen J. Turnbull
2010-08-25  6:38                           ` base Eli Zaretskii
2010-08-25  8:48                             ` base Stephen J. Turnbull
2010-08-25  9:02                               ` base Eli Zaretskii
2010-08-25 13:17                                 ` base Stephen J. Turnbull
2010-08-25 18:12                                   ` base Eli Zaretskii
2010-08-25 20:34                                     ` base Óscar Fuentes
2010-08-25 20:43                                       ` base Bernardo Barros
2010-08-25 20:55                                       ` base Eli Zaretskii
2010-08-24 18:00                       ` base Leo
2010-08-24 19:04                       ` base Juanma Barranquero
2010-08-24 23:44                         ` base Miles Bader
2010-08-24 23:48                           ` base Juanma Barranquero
2010-08-25  0:19                             ` base Miles Bader
2010-08-25  3:13                               ` base Eli Zaretskii
2010-08-25  3:44                                 ` base Miles Bader
2010-08-25  5:46                                   ` base Eli Zaretskii
2010-08-25  8:15                                 ` base Stephen J. Turnbull
2010-08-25  9:35                                   ` base Uday S Reddy
2010-08-25 10:43                                     ` base Juanma Barranquero
2010-08-25 15:34                                     ` base Stephen J. Turnbull
2010-08-25 11:21                                   ` base Eli Zaretskii
2010-08-25 13:13                                     ` base Óscar Fuentes
2010-08-25 15:11                                       ` base Harald Hanche-Olsen
2010-08-25 19:08                                         ` base Eli Zaretskii
2010-08-25 19:07                                       ` base Eli Zaretskii
2010-08-25 21:06                                         ` base Óscar Fuentes
2010-08-26  3:10                                           ` base Eli Zaretskii
2010-08-26  3:27                                             ` base Miles Bader
2010-08-26  3:29                                               ` base Miles Bader
2010-08-26  5:37                                               ` base Eli Zaretskii
2010-08-26  6:29                                                 ` base Leo
2010-08-26  8:23                                                 ` base Uday S Reddy
2010-08-26  9:16                                                   ` base Eli Zaretskii
2010-08-26 12:25                                                     ` base Uday S Reddy
2010-08-26 12:35                                                       ` base Eli Zaretskii
2010-08-26 13:27                                                     ` base Óscar Fuentes
2010-08-26 13:49                                                       ` base Eli Zaretskii
2010-08-26 14:42                                                         ` base Óscar Fuentes
2010-08-26 15:11                                                           ` base David Robinow
2010-08-26 15:50                                                             ` base Óscar Fuentes
2010-08-26 15:28                                                           ` base David Kastrup
2010-08-27  5:33                                                           ` base Stephen J. Turnbull
2010-08-27 13:25                                                             ` base Óscar Fuentes
2010-08-28 15:18                                                               ` base Stephen J. Turnbull
2010-08-26 11:01                                                 ` base Stephen J. Turnbull
2010-08-26 17:08                                                   ` base Eli Zaretskii
2010-08-27 13:03                                                     ` base Stephen J. Turnbull
2010-08-27 13:52                                                       ` Eli Zaretskii [this message]
2010-08-27 14:25                                                         ` base Miles Bader
2010-08-27 15:25                                                           ` base Eli Zaretskii
2010-08-28 16:25                                                         ` base Stephen J. Turnbull
2010-08-28 17:32                                                           ` base Eli Zaretskii
2010-08-28 18:58                                                             ` base Leo
2010-08-28 19:58                                                               ` base Eli Zaretskii
2010-08-28 22:51                                                                 ` base Leo
2010-08-28 19:16                                                             ` base Stephen J. Turnbull
2010-08-28 20:00                                                               ` base Eli Zaretskii
2010-08-29 12:21                                                                 ` base Stephen J. Turnbull
2010-08-26 18:09                                                   ` base Uday S Reddy
2010-08-25 16:09                                     ` base Stephen J. Turnbull
2010-08-25 18:51                                       ` base Eli Zaretskii
2010-08-26 10:25                                         ` base Stephen J. Turnbull
2010-08-26 11:26                                           ` base Eli Zaretskii
2010-08-26 11:52                                             ` base Leo
2010-08-27  5:43                                             ` base Stephen J. Turnbull
2010-08-27  6:57                                               ` base Eli Zaretskii
2010-08-27  7:06                                                 ` base David Kastrup
2010-08-27 13:16                                                 ` base Óscar Fuentes
2010-08-25  7:38                               ` base Leo
2010-08-25  7:41                                 ` base Juanma Barranquero
2010-08-25 13:23                                   ` base Teemu Likonen
2010-08-25  9:07                               ` base Uday S Reddy
2010-08-24 14:09                   ` base Miles Bader
2010-08-24 14:13                   ` base Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838w3smacr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.