chiark / gitweb /
Copy patchlogs when cloning a stack or picking a patch.
authorYann Dirson <ydirson@altern.org>
Sat, 5 May 2007 14:00:28 +0000 (16:00 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 14 May 2007 21:22:45 +0000 (22:22 +0100)
commit8fce9909c0794e1f08020fa99edd63dc40f8e653
treea1260ee48adb8b3f3d6520acaba37c1e6fd774de
parent2e88afce62b4c74263ad034bfd24ab0d55b3a0a4
Copy patchlogs when cloning a stack or picking a patch.

This will allow to keep patch history accross those operations, and
see when they diverged when looking at the respective patchlogs.  With
more work, that will allow to locate the common ancestor when sync'ing
a patch across branches.

The work on "pick" can still be improved: currently the patchlog is
preserved on "pick patch[@branch][//top]", but we could make it work
for //top.old as well (or any rev in the patchlog when we'll be able
to name those).

Patchlog preservation in pick can only work when referencing a patch
by name.  When picking an arbitrary commit we could also improve
things by recording a "pick" operation instead of a "new".

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/commands/pick.py
stgit/stack.py