[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: git migration party



Hi,

On Samstag, 8. Februar 2014, David Prévot wrote:
> So adding ^1 to remotes/svn-import/tags/$tag may worth it:
> 
> 	git tag -a -m" Converting SVN tags" $tag \
> 		remotes/svn-import/tags/$tag^1; echo $tag

thanks, this seems useful.
 
I've just deleted debian-edu-archive-keyring.git and will recreate it from git 
once I continue with the migration. (Dunno exactly when this will happen, but 
should be soon as this is blocking us (or at least me) from working on Edu for 
jessie...)

> Also, on a more general case, you may wish to handle “~” in tags, and

right, we had lots of those..

> you may also wish to keep the original tag commit message. I found stuff
> like the following in an backed up .bash_history used to convert the
> d-e-doc repository (I don’t remember every bit, but I guess it’s better
> to share it anyway):

:-) thanks

> 	git for-each-ref refs/remotes/origin/*%* | cut -d / -f 4- | \
> 		while read ref;\
> 		do git tag -a "`echo $ref | sed s/%7E/_/g`" \
> 		-m"`git log -n1 --oneline refs/remotes/origin/$ref | \
> 		cut -d' ' -f2-`" "refs/remotes/origin/$ref"^1 ; done
> 
> I also tried (without much success) to keep the commiter and date for
> the tags, and given the number of tags in d-e-doc, I gave up (but did so
> manually for some smaller repositories).

hmm... wasnt there a way? Or maybe another tool? comitter + date is quite nice 
to keep.


cheers,
	Holger

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: