Screw this "treat the whole repository as a single thing".
To disentangle a thrash, I am copying files one or two at a ti,me from a thrashing branch to a new branch.
Something like
hg update -r careful-branch
hg revert -r thrashing-branch file1.cpp file1.h
...
hg ci -m 'file1.cpp/.h merged from careful-branch'
Basically doing a file by file merge.
It sucks that Mercurial does not record this as a merge. Doesn't show up in the graphical diagram drawn by glog. I'd like some sort of dotted line.
Hmm : could track workflow - what files remain to be merged. Even on a diff chunk by chunk basis:
merge this chunk ; reject this chunk; defer until next pass.
Disclaimer
The content of this blog is my personal opinion only. Although I am an employee - currently of Nvidia, in the past of other companies such as Iagination Technologies, MIPS, Intellectual Ventures, Intel, AMD, Motorola, and Gould - I reveal this only so that the reader may account for any possible bias I may have towards my employer's products. The statements I make here in no way represent my employer's position, nor am I authorized to speak on behalf of my employer. In fact, this posting may not even represent my personal opinion, since occasionally I play devil's advocate.
See http://docs.google.com/View?id=dcxddbtr_23cg5thdfj for photo credits.
See http://docs.google.com/View?id=dcxddbtr_23cg5thdfj for photo credits.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment