git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add "list" and "rm" sub commands to tg-depend

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Apr 9, 2009, 18:01 UTC
Message-ID
<36ca99e90904091101l6dd1685y5be70dd77bf52b57@mail.gmail.com>
In-Reply-To
<20090409091021.5a7ded79.weiny2@llnl.gov>
2009/4/9 Ira Weiny <weiny2@llnl.gov>:
Show 8 quoted lines
> On Thu, 9 Apr 2009 14:43:37 +0200
> Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
>> You might want to check
>>
>>       http:// thread.gmane.org/gmane.comp.version-control.git/114581
>
> Ah this brings up more issues I had not thought about...  :-(  But perhaps
> Bert's work could be used to help implement "rm".  Thoughts?

No, it wont help. Because the base and tip of the topic should not changed in respect to the old state (expect for .topdeps of course).

If you really want to remove a dependency, you need to revert a merge of this dep from the topic base. which is not possible today, or maybe I have just an idea for this:

  'topic': the topic
  'base':  the base of the topic, i.e. a merge from all dependent
topics dep0, ..., depN
say you want to remove dep0
  1) merge all deps dep1, ..,depN into 'new-base'
  2) merge 'new-base' into base with the merge driver 'theirs', that
would overwrite all changes from dep0 in the 'base'
  3) update 'topic' to the updated 'base'
Any thoughts from someone who knows more than me?
Bert
> Thanks,
> Ira
Previous: Ira WeinyNext: Uwe Kleine-König
Message 3 of 7 in “Re: [PATCH] Add "list" and "rm" sub commands to tg-depend”
  1. Bert WesargApr 9, 2009
  2. Ira WeinyApr 9, 2009
  3. Bert WesargApr 9, 2009
  4. Uwe Kleine-KönigApr 9, 2009
  5. Bert WesargApr 11, 2009
  6. Uwe Kleine-KönigApr 11, 2009
  7. Bert WesargApr 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.