git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCHv3 0/1] git-p4 unshelve
@ 2018-05-15 10:01 Luke Diamand
  2018-05-15 10:01 ` [PATCHv3 1/1] git-p4: add unshelve command Luke Diamand
  2018-06-15 22:03 ` [PATCHv3 0/1] git-p4 unshelve Luke Diamand
  0 siblings, 2 replies; 3+ messages in thread
From: Luke Diamand @ 2018-05-15 10:01 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Lars Schneider, Miguel Torroja, Merland Romain,
	George Vanburgh, Luke Diamand

This is a git-p4 unshelve command which detects when extra
changes are going to be included, and refuses to unhshelve.

As in my earlier unshelve change, this uses git fast-import
to do the actual delta generation, but now checks to see
if the files unshelved are based on the same revisions that
fast-import will be using, using the revision numbers in
the "p4 describe -S" command output. If they're different,
it refuses to unshelve.

That makes it safe to use, rather than potentially generating
deltas that contain bits from other changes.

I have added a test for this case.

Luke Diamand (1):
  git-p4: add unshelve command

 Documentation/git-p4.txt |  32 ++++++
 git-p4.py                | 207 ++++++++++++++++++++++++++++++++-------
 t/t9832-unshelve.sh      | 153 +++++++++++++++++++++++++++++
 3 files changed, 356 insertions(+), 36 deletions(-)
 create mode 100755 t/t9832-unshelve.sh

-- 
2.17.0.392.gdeb1a6e9b7


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

end of thread, other threads:[~2018-06-15 22:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 10:01 [PATCHv3 0/1] git-p4 unshelve Luke Diamand
2018-05-15 10:01 ` [PATCHv3 1/1] git-p4: add unshelve command Luke Diamand
2018-06-15 22:03 ` [PATCHv3 0/1] git-p4 unshelve Luke Diamand

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).