On 09/02/2017 21:42, Roy Marples wrote:
> When importing a git fast import file, the master branch is silently
> changed to trunk, to match the fossil default.
> However, when exported back out the reverse conversion does not apply.
> 
> This is not good, because fossil is effectively re-writing history.
> But what is worse is that the export does not match the import .... I'm
> striving to get out pretty much exactly what I put in.

The silent branch renaming is problematic, but solvable.
Both fossil and git work fine without a master or trunk branch.
It is just a question of changing the defaults. I propose the following:

Without any options, both import and export preserve the original naming
scheme. However, we use the provided options to handle preference.

fossil import --rename-master trunk
fossil export --rename-trunk master

This would allow a bi-directional bridge where the default trunk name is
respected at both ends. It would also allow the crazy situation where
you have both trunk AND master branches.

Commentary on this default changing idea welcome.

Roy
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to