[PATCH 0/5] [DRAFT] StGIT, remotes, and parent information
Although they are not finished, it may be useful to give some context to current threads to publish a snapshot of what I'm working on, so here it is.
1/5 Move identification of parent branch's remote def up into stack class.
Mostly code reorg.
2/5 Allows extraction of information about remotes.
Introduces a handful of functions to get informations about remotes in the repository. Makes use of remote.<branch>.fetch multi-valued config entry.
3/5 Basic support for keeping a ref to the parent branch.
Currently relies on the failed assumption that config.set() does what it sounds, so rely instead on a rewritten config.py.
That's why I'd rather rewrite it rapidly without a dictionnary, at least as a first step - we can make the implementation better afterwards, but first make it work. Indeed I was originally only working on the 5th patch of this stack, and all this is already a bit beyond of what I was envisonning...
4/5 Have 'stg branch --create' record parent information.
Putting this all together. Would also need to do something similar in 'stg clone' and possibly other places, so some code surely needs to be factorized.
5/5 Make 'stg pull' use git-fetch and not git-pull.
Unfinished. Git-fetch takes care of using the remote information. Still have to use the previous work to find out the parent branch name to rebase onto.
Best regards,
--
Yann Dirson <ydirson@altern.org> |
Debian-related: <dirson@debian.org> | Support Debian GNU/Linux:
| Freedom, Power, Stability, Gratis
http://ydirson.free.fr/ | Check <http://www.debian.org/>