git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* StGit: kha/safe and kha/experimental updated
@ 2008-02-10 20:36 Karl Hasselström
  2008-02-12 17:54 ` Catalin Marinas
  0 siblings, 1 reply; 7+ messages in thread
From: Karl Hasselström @ 2008-02-10 20:36 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, Peter Oberndorfer, David Kågedal

Both branches updated. I've promoted some experimental patches to
safe, and done some work on new and delete (will post the patches in
reply to this mail).

                                 -+-

The following changes since commit a639e7bbf3a6396254af76062ee88c22e4373340:
  Karl Hasselström (1):
        Don't clean away patches with conflicts

are available in the git repository at:

  git://repo.or.cz/stgit/kha.git safe

Karl Hasselström (11):
      Don't check out files if we don't have index+workdir
      Make documentation less confusing
      Reduce number of backslashes by using raw strings
      Let "stg show" use the unified --diff-opts handling
      Read default diff options from the user's config
      Teach new infrastructure about the default author and committer
      Teach new infrastructure to apply patches
      Teach new infrastructure to diff two trees
      Parse the date instead of treating it as an opaque string
      Convert "stg edit" to the new infrastructure
      Emacs mode: It's possible to edit unapplied patches now

Peter Oberndorfer (1):
      Add an --index option to "stg refresh"

 contrib/stgit.el          |    4 +-
 examples/gitconfig        |    4 +
 stgit/commands/common.py  |    4 +-
 stgit/commands/edit.py    |  309 +++++++++++++++++++++------------------------
 stgit/commands/mail.py    |    4 +-
 stgit/commands/new.py     |    6 +-
 stgit/commands/refresh.py |   25 +++-
 stgit/commands/show.py    |   13 +--
 stgit/lib/git.py          |  126 ++++++++++++++++++-
 stgit/lib/transaction.py  |   13 +-
 stgit/utils.py            |    3 +-
 t/t2700-refresh.sh        |   57 ++++++++-
 12 files changed, 368 insertions(+), 200 deletions(-)

                                 -+-

The following changes since commit 8ae7dc9d485fe5f3fee02ead7f25133be7321614:
  Karl Hasselström (1):
        Emacs mode: It's possible to edit unapplied patches now

are available in the git repository at:

  git://repo.or.cz/stgit/kha.git experimental

Karl Hasselström (7):
      Disable patchlog test for "stg new"
      Convert "stg new" to the new infrastructure
      Refactor --author/--committer options
      Let "stg new" support more message options
      Emacs mode: use "stg new --file"
      Convert "stg delete" to the new infrastructure
      Emacs mode: delete patches

 contrib/stgit.el         |   20 +++++----
 stgit/commands/common.py |   33 +++++----------
 stgit/commands/delete.py |   72 +++++++++++-----------------------
 stgit/commands/edit.py   |   25 +----------
 stgit/commands/new.py    |   97 +++++++++++++++++++++++++--------------------
 stgit/lib/git.py         |    8 ++--
 stgit/utils.py           |   50 +++++++++++++++++++++++
 t/t1400-patch-history.sh |    2 -
 t/t1600-delete-one.sh    |    8 ++--
 9 files changed, 160 insertions(+), 155 deletions(-)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: StGit: kha/safe and kha/experimental updated
  2008-02-10 20:36 Karl Hasselström
@ 2008-02-12 17:54 ` Catalin Marinas
  0 siblings, 0 replies; 7+ messages in thread
From: Catalin Marinas @ 2008-02-12 17:54 UTC (permalink / raw)
  To: Karl Hasselström; +Cc: git, Peter Oberndorfer, David Kågedal

On 10/02/2008, Karl Hasselström <kha@treskal.com> wrote:
> Both branches updated. I've promoted some experimental patches to
> safe, and done some work on new and delete (will post the patches in
> reply to this mail).

Thanks, I merged them last night. I now have to spend some time to
understand StGIT as it's moving too fast :-). I'll try to put back
some of the things I use like the automatic invocation of the merge
tool during conflicts etc.

-- 
Catalin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* StGit: kha/safe and kha/experimental updated
@ 2008-03-19  1:28 Karl Hasselström
  2008-03-19  1:38 ` Karl Hasselström
  0 siblings, 1 reply; 7+ messages in thread
From: Karl Hasselström @ 2008-03-19  1:28 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, Alex Chiang, Angus Salkeld

kha/safe contains two patches that were posted to the list quite some
time ago. Sorry for the delay! kha/experimental still has the
new/delete rewrites from way back when, plus a new and shiny "stg
reset" prototype!

                                 -+-

The following changes since commit 0a03ab4518fca921a8f427d283f29c0fe3625cb2:
  Onno Kortmann (1):
        Test the 'stg rename' command

are available in the git repository at:

  git://repo.or.cz/stgit/kha.git safe

Alex Chiang (1):
      Better "stg rebase" help text

Angus Salkeld (1):
      stg mail crashes when there is no patch description

 stgit/commands/mail.py   |    9 +++++++--
 stgit/commands/rebase.py |   14 +++++++++++++-
 2 files changed, 20 insertions(+), 3 deletions(-)

                                 -+-

The following changes since commit 70bbc1a3d57cfe0e5eb6839a7889201fdeaa3cd6:
  Angus Salkeld (1):
        stg mail crashes when there is no patch description

are available in the git repository at:

  git://repo.or.cz/stgit/kha.git experimental

Karl Hasselström (12):
      Disable patchlog test for "stg new"
      Convert "stg new" to the new infrastructure
      Refactor --author/--committer options
      Let "stg new" support more message options
      Emacs mode: use "stg new --file"
      Convert "stg delete" to the new infrastructure
      Emacs mode: delete patches
      Add property with a list of all patch names
      Library functions for tree and blob manipulation
      Write to a stack log when stack is modified
      Add utility function for reordering patches
      New command: stg reset

 contrib/stgit.el           |   33 +++++++---
 stgit/commands/branch.py   |   18 ++++--
 stgit/commands/clone.py    |    3 +-
 stgit/commands/coalesce.py |    3 +-
 stgit/commands/commit.py   |    6 +-
 stgit/commands/common.py   |   33 +++-------
 stgit/commands/delete.py   |   70 ++++++---------------
 stgit/commands/edit.py     |   26 +-------
 stgit/commands/float.py    |    3 +
 stgit/commands/fold.py     |    3 +-
 stgit/commands/imprt.py    |    3 +-
 stgit/commands/init.py     |    3 +-
 stgit/commands/new.py      |   97 ++++++++++++++++-------------
 stgit/commands/pick.py     |    3 +-
 stgit/commands/pop.py      |    3 +-
 stgit/commands/pull.py     |    3 +-
 stgit/commands/push.py     |    6 +-
 stgit/commands/rebase.py   |    4 +-
 stgit/commands/refresh.py  |    4 +-
 stgit/commands/rename.py   |    4 +-
 stgit/commands/reset.py    |   56 +++++++++++++++++
 stgit/commands/resolved.py |    4 +-
 stgit/commands/sink.py     |    3 +-
 stgit/commands/sync.py     |    5 +-
 stgit/commands/uncommit.py |    2 +-
 stgit/lib/git.py           |  147 ++++++++++++++++++++++++++++++++++++--------
 stgit/lib/log.py           |  105 +++++++++++++++++++++++++++++++
 stgit/lib/stack.py         |    1 +
 stgit/lib/transaction.py   |   17 +++++-
 stgit/main.py              |    2 +
 stgit/utils.py             |   50 +++++++++++++++
 t/t1400-patch-history.sh   |    2 -
 t/t1600-delete-one.sh      |    8 +-
 33 files changed, 523 insertions(+), 207 deletions(-)
 create mode 100644 stgit/commands/reset.py
 create mode 100644 stgit/lib/log.py

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: StGit: kha/safe and kha/experimental updated
  2008-03-19  1:28 StGit: kha/safe and kha/experimental updated Karl Hasselström
@ 2008-03-19  1:38 ` Karl Hasselström
  2008-03-20 15:25   ` Catalin Marinas
  0 siblings, 1 reply; 7+ messages in thread
From: Karl Hasselström @ 2008-03-19  1:38 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, Alex Chiang, Angus Salkeld

On 2008-03-19 02:28:04 +0100, Karl Hasselström wrote:

> plus a new and shiny "stg reset" prototype!

It works like this:

  1. Every StGit command that modifies anything writes the new state
     to a log. The log is a git branch called <branchname>.stgit.

  2. When you've done something you regret, find the state in the log
     you want to return to and just say (for example)

       $ stg reset master.stgit~3

     Resetting is recorded in the log just like everything else, so to
     undo a reset you just did, simply say

       $ stg reset master.stgit^

There are lots of things that have to be ironed out before it's done,
especially the UI, but it's ready for folks to play with and comment
on.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: StGit: kha/safe and kha/experimental updated
  2008-03-19  1:38 ` Karl Hasselström
@ 2008-03-20 15:25   ` Catalin Marinas
  2008-03-24 18:26     ` Karl Hasselström
  0 siblings, 1 reply; 7+ messages in thread
From: Catalin Marinas @ 2008-03-20 15:25 UTC (permalink / raw)
  To: Karl Hasselström; +Cc: git, Alex Chiang, Angus Salkeld

On 19/03/2008, Karl Hasselström <kha@treskal.com> wrote:
> On 2008-03-19 02:28:04 +0100, Karl Hasselström wrote:
>
>  > plus a new and shiny "stg reset" prototype!
>
>
> It works like this:
>
>   1. Every StGit command that modifies anything writes the new state
>      to a log. The log is a git branch called <branchname>.stgit.
>
>   2. When you've done something you regret, find the state in the log
>      you want to return to and just say (for example)
>
>        $ stg reset master.stgit~3
>
>      Resetting is recorded in the log just like everything else, so to
>      undo a reset you just did, simply say
>
>        $ stg reset master.stgit^

That's cool :-), thanks. We can even add aliases for 'undo' and 'redo'.

-- 
Catalin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: StGit: kha/safe and kha/experimental updated
  2008-03-20 15:25   ` Catalin Marinas
@ 2008-03-24 18:26     ` Karl Hasselström
  2008-03-25 10:52       ` Catalin Marinas
  0 siblings, 1 reply; 7+ messages in thread
From: Karl Hasselström @ 2008-03-24 18:26 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, Alex Chiang, Angus Salkeld

On 2008-03-20 15:25:04 +0000, Catalin Marinas wrote:

> We can even add aliases for 'undo' and 'redo'.

It's not entirely clear (to me at least) exactly what undo and redo
should do. Something like this maybe:

  undo: If the log begins with k "undo" entries (k >= 0), reset to
        log~(2k+1).

  redo: Find the most recent "undo" entry that hasn't been cancelled
        out by a "redo". If this is the most recent log entry (except
        the cancelled-out ones), reset to it; otherwise, complain that
        the last command was not an undo or redo.

I _think_ this does what one naively expects undo and redo to do.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: StGit: kha/safe and kha/experimental updated
  2008-03-24 18:26     ` Karl Hasselström
@ 2008-03-25 10:52       ` Catalin Marinas
  0 siblings, 0 replies; 7+ messages in thread
From: Catalin Marinas @ 2008-03-25 10:52 UTC (permalink / raw)
  To: Karl Hasselström; +Cc: git, Alex Chiang, Angus Salkeld

On 24/03/2008, Karl Hasselström <kha@treskal.com> wrote:
> On 2008-03-20 15:25:04 +0000, Catalin Marinas wrote:
>
>  > We can even add aliases for 'undo' and 'redo'.
>
>
> It's not entirely clear (to me at least) exactly what undo and redo
>  should do. Something like this maybe:
>
>   undo: If the log begins with k "undo" entries (k >= 0), reset to
>         log~(2k+1).
>
>   redo: Find the most recent "undo" entry that hasn't been cancelled
>         out by a "redo". If this is the most recent log entry (except
>         the cancelled-out ones), reset to it; otherwise, complain that
>         the last command was not an undo or redo.
>
>  I _think_ this does what one naively expects undo and redo to do.

Yes, something like this. Anyway, this can be explained in the help
without adding separate commands (at least for now).

-- 
Catalin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-25 10:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19  1:28 StGit: kha/safe and kha/experimental updated Karl Hasselström
2008-03-19  1:38 ` Karl Hasselström
2008-03-20 15:25   ` Catalin Marinas
2008-03-24 18:26     ` Karl Hasselström
2008-03-25 10:52       ` Catalin Marinas
  -- strict thread matches above, loose matches on Subject: below --
2008-02-10 20:36 Karl Hasselström
2008-02-12 17:54 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).