{"thread":{"id":"2439","subject":"Re: git-archimport","startedAt":"2005-11-10T21:49:59Z","lastAt":"2005-11-12T11:30:13Z","messageCount":6,"participants":["Kevin Geiss","Martin Langhoff"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11520","messageId":"20051110214959.GO9131@raven.localdomain","threadId":"2439","inReplyTo":"46a038f90511101332r3389734uc1aa1effd2898e15@mail.gmail.com","subject":"Re: git-archimport","fromName":"Kevin Geiss","fromEmail":"kevin@desertsol.com","sentAt":"2005-11-10T21:49:59Z","receivedAt":"2005-11-10T21:49:59Z","isPatch":false,"sender":{"key":"kevin@desertsol.com","avatar":null},"body":"ok. I tried this:\n\ngit-archimport kevin@desertsol.com--files/scripts--base kevin@desertsol.com--files/scripts--oco\n\nand it always complains:\n\nCannot find patchset for 'kevin@desertsol.com--files/scripts--oco--0--patch-1' at /usr/bin/git-archimport line 784\n\nI don't have any spaces or funny characters in filenames.\n\nOn Fri, Nov 11, 2005 at 10:32:12AM +1300, Martin Langhoff wrote:\n> If the two branches are related, and you want the imported git\n> branches to be related, do\n> \n>    git-archimport arch-eduforge@catalyst.net.nz--2004/scripts\n> \n> that will bring all the stuff under scripts. If there are other\n> branches or projects there that aren't related or you don't  want to\n> pull, do\n> \n>    git-archimport arch-eduforge@catalyst.net.nz--2004/scripts--base \\\n>         arch-eduforge@catalyst.net.nz--2004/scripts--oco\n> \n> In any case, you shoud never pass the last token (base-0). Also, if\n> you have filenames with spaces or funny chars, you'll want a patch\n> that I'm about to post.\n> \n> If you don't mind having this discussion on git@vger, could you\n> forward it there?\n> \n> cheers,\n> \n> \n> martin\n> \n> On 11/11/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> > hello, I was trying out the git-archimport script, I have a question.\n> >\n> > say I have two branches in tla (in the same archive):\n> >\n> > scripts--base--0\n> > scripts--oco--0\n> >\n> > and scripts--oco--0--base-0 was tagged from scripts--base--0--patch-2.\n> >\n> > I first tried importing only the base branch, that worked fine. then\n> > I started a new directory, and tried this:\n> >\n> > git arch-import -v archive/scripts--base--0 archive/scripts--oco--0\n> >\n> > and it keeps complaning about not being able to find scripts--oco--0--\n> > patch-1.  patch-1 is just a regular commit in the tla archive.\n> > (patch-2 and patch-3 are merges from scripts--base)\n> >\n> > anyway, am I understanding the paradigm of the git-archimport script?\n> > that I should expect it to be able to create a git repository for me\n> > from these 2 branches?\n> >\n> > thanks for any info\n> >\n> \n"},{"id":"11521","messageId":"46a038f90511101421o7988a1bfi89eb0e33bd34e4bb@mail.gmail.com","threadId":"2439","inReplyTo":"20051110214959.GO9131@raven.localdomain","subject":"Re: git-archimport","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-11-10T22:21:12Z","receivedAt":"2005-11-10T22:21:12Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 11/11/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> Cannot find patchset for 'kevin@desertsol.com--files/scripts--oco--0--patch-1' at /usr/bin/git-archimport line 784\n\nHmmm. The script uses tla itself to get the patch. What happens if you do\n\n  tla get-changeset -A kevin@desertsol.com--files/scripts--oco--0--patch-1\n\nIn short, you must have a recent tla configured and with the archive\nregistered.\n\ncheers,\n\n\n\nmartin\n"},{"id":"11550","messageId":"20051111051910.GP9131@raven.localdomain","threadId":"2439","inReplyTo":"46a038f90511101421o7988a1bfi89eb0e33bd34e4bb@mail.gmail.com","subject":"Re: git-archimport","fromName":"Kevin Geiss","fromEmail":"kevin@desertsol.com","sentAt":"2005-11-11T05:19:10Z","receivedAt":"2005-11-11T05:19:10Z","isPatch":false,"sender":{"key":"kevin@desertsol.com","avatar":null},"body":"On Fri, Nov 11, 2005 at 11:21:12AM +1300, Martin Langhoff wrote:\n> On 11/11/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> > Cannot find patchset for 'kevin@desertsol.com--files/scripts--oco--0--patch-1' at /usr/bin/git-archimport line 784\n> \n> Hmmm. The script uses tla itself to get the patch. What happens if you do\n> \n>   tla get-changeset -A kevin@desertsol.com--files/scripts--oco--0--patch-1\n> \n> In short, you must have a recent tla configured and with the archive\n> registered.\n> \n> cheers,\n> \n> \n> \n> martin\n\nI've got tla 1.3, and the changeset seems to be there:\n\n10:15pm0raven>tla get-changeset -A kevin@desertsol.com--files/scripts--oco--0--patch-1                                         /tmp\nusage: tla get-changeset [options] revision [dir]\ntry get-changeset --help\n10:15pm1raven>tla get-changeset  kevin@desertsol.com--files/scripts--oco--0--patch-1                                           /tmp\ngpg: Signature made Mon Feb 14 12:28:10 2005 MST using DSA key ID E1E6A3B1\ngpg: Good signature from \"Kevin Geiss <kevin@desertsol.com>\"\n10:15pm0raven>tla get-changeset --help                                                                                         /tmp\nretrieve a changeset from an archive\nusage: tla get-changeset [options] revision [dir]\n\n  -h, --help     Display a help message and exit.\n  -H             Display a verbose help message and exit.\n  -V, --version  Display a release identifier string\n                 and exit.\n  -A, --archive  Override `my-default-archive'\n\n10:16pm0raven>tla --version                                                                                                    /tmp\ntla lord@emf.net--gnu-arch-2004/dists--tla--1.3--version-0(configs/gnu/This-release) from regexps.com\n"},{"id":"11553","messageId":"46a038f90511102158k5078e37fn2558cf69bc5794fa@mail.gmail.com","threadId":"2439","inReplyTo":"20051111051910.GP9131@raven.localdomain","subject":"Re: git-archimport","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-11-11T05:58:34Z","receivedAt":"2005-11-11T05:58:34Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 11/11/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> gpg: Signature made Mon Feb 14 12:28:10 2005 MST using DSA key ID E1E6A3B1\n\nI've never imported a signed changeset, perhaps that's the problem. Is\nthe repo public so I can test it myself?\n\ncheers,\n\nmartin\n"},{"id":"11636","messageId":"20051111232428.GS9131@raven.localdomain","threadId":"2439","inReplyTo":"46a038f90511102158k5078e37fn2558cf69bc5794fa@mail.gmail.com","subject":"Re: git-archimport","fromName":"Kevin Geiss","fromEmail":"kevin@desertsol.com","sentAt":"2005-11-11T23:24:28Z","receivedAt":"2005-11-11T23:24:28Z","isPatch":false,"sender":{"key":"kevin@desertsol.com","avatar":null},"body":"it's not really public, perhaps I can make it public though. can a tla mirror\nbe served over http? or does it require ssh?\n\nI'm confident the gpg signatures aren't the problem. I imported some branches\nyesterday which were all signed, they worked fine.\n\nI suspuect the problem is that after tagging the oco branch from the base\nbranch, there are several places where I replayed some patches from one of the\nbranches to the other. some patches were skipped, some were replayed.  there\nwas definitely a lot of hard core cherry picking going on, in both directions.\ndo you think that would cause a problem?\n\nthe branches I've imported successfully were things where I had version 1, then\ntagged that to create version 2, then tagged that to create version 3, with no\nreplay or merging going on between the branches. (everything was gpg signed\nthough)\n\nOn Fri, Nov 11, 2005 at 06:58:34PM +1300, Martin Langhoff wrote:\n> On 11/11/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> > gpg: Signature made Mon Feb 14 12:28:10 2005 MST using DSA key ID E1E6A3B1\n> \n> I've never imported a signed changeset, perhaps that's the problem. Is\n> the repo public so I can test it myself?\n> \n> cheers,\n> \n> martin\n> \n"},{"id":"11661","messageId":"46a038f90511120330y537c74cat56cce259ad661243@mail.gmail.com","threadId":"2439","inReplyTo":"20051111232428.GS9131@raven.localdomain","subject":"Re: git-archimport","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-11-12T11:30:13Z","receivedAt":"2005-11-12T11:30:13Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 11/12/05, Kevin Geiss <kevin@desertsol.com> wrote:\n> it's not really public, perhaps I can make it public though. can a tla mirror\n> be served over http? or does it require ssh?\n\nIt can be served over http, though the repo needs to be setup with\nsome special options. You can easily setup a mirror that works over\nhttp, though I can't remember the exact options.\n\n> I'm confident the gpg signatures aren't the problem. I imported some branches\n> yesterday which were all signed, they worked fine.\n\nCool. That's good to know...\n\n> I suspuect the problem is that after tagging the oco branch from the base\n> branch, there are several places where I replayed some patches from one of the\n> branches to the other. some patches were skipped, some were replayed.  there\n> was definitely a lot of hard core cherry picking going on, in both directions.\n> do you think that would cause a problem?\n\nThe archimport script was written and tested against the branches I\nmaintained in Arch, which had a reasonably rich and messy scheme of\nbranching, cherry picking and replaying of patches. We just imported\nsome additional branches from an unrelated project and it worked\npretty well. So cherry picking/replaying itself should not be an\nissue.\n\nOn the other hand, some versions of tla are notoriously sloppy in the\npatchsets they generate, forgetting to add files or adding them in two\nconsecutive patchsets. I don't think archimport is too tolerant, and I\ndid find some particular patchsets that wouldn't work correctly.\n\nI'm interested in patches that make the import more resilient, though.\nSo if you can fixup archimport so your import works, and the patch is\nsane, I'll vouch for its inclusion.\n\ncheers,\n\n\n\nmartin\n"}]}