{"thread":{"id":"27489","subject":"[RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","startedAt":"2011-05-28T09:54:23Z","lastAt":"2011-05-31T08:25:59Z","messageCount":8,"participants":["Jakub Narebski","Arnaud Lacurie","Ævar Arnfjörð Bjarmason","Dave Zarzycki","Eric Wong","Michael Haggerty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"168909","messageId":"201105281154.25223.jnareb@gmail.com","threadId":"27489","inReplyTo":null,"subject":"[RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2011-05-28T09:54:23Z","receivedAt":"2011-05-28T09:54:23Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Now that git supports annotating comments with `git notes` utility,\ncould we have an option to git-svn which would make it store SVN \nmetadata, i.e. git-svn-id: lines using git-notes (separate svnmetadata \nor git-svn notes ref)?\n\nThis way we wouldn't have those ugly git-svn-id lines in log (unless \nrequested), and droping them would be as simple as deleting ref - no \nhistory rewriting required.\n\nOf course this requires git-svn to make use of those notes to get SVN \nmetadata...\n\n\nEric, from what I remember you don't have time nor inclination for \nadding new features to git-svn, is it?\n\n-- \nJakub Narebski\nPoland\n"},{"id":"168913","messageId":"BANLkTimsmTHdJQNWsvmJxfCPUp5DV+nmYw@mail.gmail.com","threadId":"27489","inReplyTo":"201105281154.25223.jnareb@gmail.com","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Arnaud Lacurie","fromEmail":"arnaud.lacurie@gmail.com","sentAt":"2011-05-28T13:30:54Z","receivedAt":"2011-05-28T13:30:54Z","isPatch":false,"sender":{"key":"arnaud.lacurie@gmail.com","avatar":null},"body":"2011/5/28 Jakub Narebski <jnareb@gmail.com>:\n> Now that git supports annotating comments with `git notes` utility,\n> could we have an option to git-svn which would make it store SVN\n> metadata, i.e. git-svn-id: lines using git-notes (separate svnmetadata\n> or git-svn notes ref)?\n\nI think that it's a great idea, it would make git-svn more like git\nitself without poisoning the git log indeed.\nWe're trying to do this with the gate between git and mediawiki :\nhttp://www.spinics.net/lists/git/msg158701.html.\nWhen it's done, feel free to have a look at the code. Doing it with\ngit-svn should be similar.\n\n-- \nArnaud Lacurie\n"},{"id":"168914","messageId":"BANLkTinorqTQOBw46mYJYfEWTEXC+Myzpw@mail.gmail.com","threadId":"27489","inReplyTo":"201105281154.25223.jnareb@gmail.com","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2011-05-28T15:55:45Z","receivedAt":"2011-05-28T15:55:45Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"2011/5/28 Jakub Narebski <jnareb@gmail.com>:\n> Now that git supports annotating comments with `git notes` utility,\n> could we have an option to git-svn which would make it store SVN\n> metadata, i.e. git-svn-id: lines using git-notes (separate svnmetadata\n> or git-svn notes ref)?\n\nOne good thing about git-svn's current system is that you can easily\nshare your repository with someone else, and they can bootstrap from\nthe same commits.\n\nHas the sharing of git-notes been improved to the point where that\ncould be done similarly transparently?\n"},{"id":"168915","messageId":"201105281837.56655.jnareb@gmail.com","threadId":"27489","inReplyTo":"BANLkTinorqTQOBw46mYJYfEWTEXC+Myzpw@mail.gmail.com","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2011-05-28T16:37:54Z","receivedAt":"2011-05-28T16:37:54Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"On Sat, 28 May 2011, Ævar Arnfjörð Bjarmason wrote:\n> 2011/5/28 Jakub Narebski <jnareb@gmail.com>:\n\n> > Now that git supports annotating comments with `git notes` utility,\n> > could we have an option to git-svn which would make it store SVN\n> > metadata, i.e. git-svn-id: lines using git-notes (separate svnmetadata\n> > or git-svn notes ref)?\n> \n> One good thing about git-svn's current system is that you can easily\n> share your repository with someone else, and they can bootstrap from\n> the same commits.\n\nHow it works with svn-dcommit rewriting commits?\n \n> Has the sharing of git-notes been improved to the point where that\n> could be done similarly transparently?\n \nFirst, the idea was to do it optionally.  In addition to existing and\ndiscouraged `svn.noMetadata` / `--no-metadata` git-svn would acquire\n`svn.metadata` / `--metadata` / `--svn-metadata` = none | notes | commits\nthat would as one option put 'git-svn-id:' lines or their equivalent\nto git notes.\n\nSecond, from what I understand from the very beginning git-notes \nwas designed in such way that sharing notes is sharing ref.\ngit-replace shares this feature.\n\nBut please take above with a grain of salt, having never used notes\nbefore, and not being developer of this subsystem.\n-- \nJakub Narebski\nPoland\n"},{"id":"168935","messageId":"0DF6602C-9DF3-42B3-AFB1-CDAA71D9E2F0@apple.com","threadId":"27489","inReplyTo":"BANLkTinorqTQOBw46mYJYfEWTEXC+Myzpw@mail.gmail.com","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Dave Zarzycki","fromEmail":"zarzycki@apple.com","sentAt":"2011-05-29T06:37:45Z","receivedAt":"2011-05-29T06:37:45Z","isPatch":false,"sender":{"key":"zarzycki@apple.com","avatar":"https://avatars.githubusercontent.com/u/1071982?v=4"},"body":"On May 28, 2011, at 8:55 AM, Ævar Arnfjörð Bjarmason wrote:\n\n> One good thing about git-svn's current system is that you can easily\n> share your repository with someone else, and they can bootstrap from\n> the same commits.\n\nI wish that was practical for some projects.\n\nIt would be a huge improvement if git-svn could fully incorporate *all* of the metadata that it needs into native git objects (notes/tags/something). That way a git clone of a git-svn repository doesn't need to re-bootstrap anything. :-)\n\nFor example, a project that I follow has 26k branches (one per bug fix due to organizational workflow/policy). The project took five days to \"git svn clone -s\" and the re-bootstrap after blowing away the .git/svn directory is similarly painful. Why? Well, let's consider how much data must be rebuilt:\n\n$ git svn gc\n$ find */.git/svn -type f -name unhandled.log.gz -print0 | xargs -0 rm\n$ du -sh .git/svn\n445M\t.git/svn\n$ find .git/svn | wc -l\n   52467\n$ \n\nCrazy, huh?\n\ndavez\n\n\nP.S. -- To the credit of git, the space savings are incredible for this project. The svn repository is 33.6 GiB vs 133.2 MiB for git (minus git-svn and git-reflog overhead). That's ~260x!"},{"id":"169038","messageId":"20110531045324.GA13661@dcvr.yhbt.net","threadId":"27489","inReplyTo":"201105281154.25223.jnareb@gmail.com","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2011-05-31T04:53:24Z","receivedAt":"2011-05-31T04:53:24Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jakub Narebski <jnareb@gmail.com> wrote:\n> Eric, from what I remember you don't have time nor inclination for \n> adding new features to git-svn, is it?\n\nYes, that's mostly the case.  I suggest anybody interested in working on\ngit-svn further to split out the Perl modules into separate files before\ndoing any more work on it.\n\n-- \nEric Wong\n"},{"id":"169043","messageId":"201105310920.13323.jnareb@gmail.com","threadId":"27489","inReplyTo":"20110531045324.GA13661@dcvr.yhbt.net","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2011-05-31T07:20:12Z","receivedAt":"2011-05-31T07:20:12Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"On Tue, 31 May 2011, Eric Wong wrote:\n> Jakub Narebski <jnareb@gmail.com> wrote:\n\n> > Eric, from what I remember you don't have time nor inclination for \n> > adding new features to git-svn, is it?\n> \n> Yes, that's mostly the case.  I suggest anybody interested in working on\n> git-svn further to split out the Perl modules into separate files before\n> doing any more work on it.\n\nCould you please at least review patches?  Would you have enough time\n(and inclination) to do at least this?\n\nTIA\n-- \nJakub Narebski\nPoland\n"},{"id":"169044","messageId":"4DE4A617.9020907@alum.mit.edu","threadId":"27489","inReplyTo":"20110531045324.GA13661@dcvr.yhbt.net","subject":"Re: [RFD] Proposal for git-svn: storing SVN metadata (git-svn-id) in notes","fromName":"Michael Haggerty","fromEmail":"mhagger@alum.mit.edu","sentAt":"2011-05-31T08:25:59Z","receivedAt":"2011-05-31T08:25:59Z","isPatch":false,"sender":{"key":"mhagger@alum.mit.edu","avatar":"https://avatars.githubusercontent.com/u/119718?v=4"},"body":"On 05/31/2011 06:53 AM, Eric Wong wrote:\n> Jakub Narebski <jnareb@gmail.com> wrote:\n>> Eric, from what I remember you don't have time nor inclination for \n>> adding new features to git-svn, is it?\n> \n> Yes, that's mostly the case.  I suggest anybody interested in working on\n> git-svn further to split out the Perl modules into separate files before\n> doing any more work on it.\n\nWhat kind of design documentation is available for git-svn?  Is there\nany documentation about the format and contents of the files that\ngit-svn uses?\n\nSuch documentation would make it a lot easier for new developers to get\ninvolved.\n\nMichael\n\n-- \nMichael Haggerty\nmhagger@alum.mit.edu\nhttp://softwareswirl.blogspot.com/\n"}]}