[fossil-users] two questions abut git import

2014-12-29 Thread Luca Ferrari
Hi all,
I'm new to fossil, therefore apologize for my trivial questions. I've
imported a quite big git repository (around 500 GB) to fossil without
any problem, but:
1) if I get it right the fossil repo file must be in the same
directory of the git tree, and therefore I cannot place it somewhere
else as for native fossil repos, is this correct?
2) is there a way to change the author name and email of all presents commits?

Thanks,
Luca
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] two questions abut git import

2014-12-29 Thread Baruch Burstein
On Mon, Dec 29, 2014 at 10:45 AM, Luca Ferrari fluca1...@infinito.it
wrote:

 Hi all,
 I'm new to fossil, therefore apologize for my trivial questions. I've
 imported a quite big git repository (around 500 GB) to fossil without
 any problem, but:
 1) if I get it right the fossil repo file must be in the same
 directory of the git tree, and therefore I cannot place it somewhere
 else as for native fossil repos, is this correct?


No. The Fossil repo is completely self contained and does not depend in any
way on the git repo or even on the git-export file it was created from.


 2) is there a way to change the author name and email of all presents
 commits?


Once the data is in the Fossil repo it cannot be changed. Any changes have
to be done either in the git repository before exporting, or on the
exported file before importing. I am not familiar enough with git to know
if such tools exist, or even if these things are possible.


-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] two questions abut git import

2014-12-29 Thread Gour
On Pon, 2014-12-29 at 11:17 +0200, Baruch Burstein wrote:

 Once the data is in the Fossil repo it cannot be changed. Any changes
 have to be done either in the git repository before exporting, or on
 the exported file before importing. I am not familiar enough with git
 to know if such tools exist, or even if these things are possible.

Try this: https://help.github.com/articles/changing-author-info/


Sincerely,
Gour

-- 



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


Re: [fossil-users] two questions abut git import

2014-12-29 Thread Richard Hipp
On Mon, Dec 29, 2014 at 4:17 AM, Baruch Burstein bmburst...@gmail.com
wrote:



 2) is there a way to change the author name and email of all presents
 commits?


 Once the data is in the Fossil repo it cannot be changed. Any changes have
 to be done either in the git repository before exporting, or on the
 exported file before importing. I am not familiar enough with git to know
 if such tools exist, or even if these things are possible.


There exists a special tag that will change the displayed user name for a
single check-in.  The original username is preserved and is accessible, but
the modified user name is the one used on timeline displays and such.  If
you click on the link to a particular check-in in the timeline, then click
on the Edit link for the check-in information page, it takes you to a
screen that lets you modify the check-in in various ways, such as
changing the user name.  But Baruch is correct in saying that the check-in
is not really modified - what this does is create a special tag that says
display this alternative username on the timeline.

Unfortunately, there is no way to do this for every check-in all at once.
You would have to go through and create separate tags for each check-in.
There is probably a way to script this.  But it would be better to change
the names in git prior to import, probably.  Or, run the git-fast-export
text through a sed script that makes the change prior to sending into
fossil import.

-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] two questions abut git import

2014-12-29 Thread Stephan Beal
On Mon, Dec 29, 2014 at 12:30 PM, Richard Hipp d...@sqlite.org wrote:

 separate tags for each check-in.  There is probably a way to script this.


fossil tag add user VERSION USERNAME

should do the trick. You'd just need to feed it the list of versions, which
you can fetch with something like:

echo select b.uuid from blob b, event e where e.objid=b.rid and
e.type='ci'; | fossil sqlite

But...


 But it would be better to change the names in git prior to import,
 probably.  Or, run the git-fast-export text through a sed script that makes
 the change prior to sending into fossil import.


+1

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users