Re: [PATCH] [RFD] Add repoid identifier to commit [its a workspace id, isn't it?]
- From
- Thomas Gleixner <tglx@linutronix.de>
- Date
- May 13, 2005, 08:36 UTC
- Message-ID
- <1115973408.11872.125.camel@tglx>
- In-Reply-To
- <2cfc4032050512183788e01fc@mail.gmail.com>
On Fri, 2005-05-13 at 11:37 +1000, Jon Seymour wrote:
> I think I understand what Thomas is trying to achieve, but I think > there is a naming problem here. The marker really isn't a repoid - it > is a workspace id.
I did not think about the naming convention here. I was just looking at the repositories of Dave Miller - net-2.6 and sparc-2.6 - which are not seperable by any automated mechanism due to the fact that Dave uses the same committer name for both, which is reasonable.
You are right, those are workspaces which happen to have a seperate public repository.
Show 5 quoted lines
> From the point of view of a given change epoch, M always wants to see > "local changes occur first". To know what changes were local to M you > need to mark the changes that workspace M made with an identifier > saying that M did this in this workspace, hence the need for the > marker that Thomas is proposing.
My main concern here is to be able to see a change in the context in which it was made. In distributed development a change made in workspace A is correct in the context of A and a change made in the workspace B is correct in the context of B. By merging these maybe unrelated changes produce a problem. Add a random number of changes to increase the complexitiy.
It is helpful from my experience to have a possibility to see the seperate changes in the context where they were made to understand why the change was made.
If your history is cluttered by the head forward cloning you have more work to deduce the information you want to have instead of having it available on demand by a tool.
Show 6 quoted lines
> Assuming that there is value in being able to reconstruct the merge > order from the perspective of workspaces that have contributed to the > global history it would seem that Thomas's suggestion of marking each > commit with an identifier is reasonable, however, I think the name of > the identifier should change - what's being tracked is a workspace, > not a repository.
Ack.
The question is how to automate those workspace identifiers in a senseful way. A shared object repository makes it necessary to keep the identifier in workspace itself. A first idea might be a .git_workspace_id file in the toplevel directory of the workspace, which can automatically be ignored by all git tools. Maybe a ignore rule for all .git* files is also reasonable to make future extensions simpler
tglx