{"thread":{"id":"19542","subject":"git-svn clone problem","startedAt":"2009-05-27T22:16:01Z","lastAt":"2009-05-28T17:22:07Z","messageCount":5,"participants":["Joel Becker","Deskin Miller","Matthias Andree"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114857","messageId":"20090527221601.GA12914@mail.oracle.com","threadId":"19542","inReplyTo":null,"subject":"git-svn clone problem","fromName":"Joel Becker","fromEmail":"joel.becker@oracle.com","sentAt":"2009-05-27T22:16:01Z","receivedAt":"2009-05-27T22:16:01Z","isPatch":false,"sender":{"key":"joel.becker@oracle.com","avatar":null},"body":"Hello everyone,\n\tI've got a fun git-svn bug I can't seem to track down.  The\ngoogle is no help.  I'm just trying to clone a full repo.  I'm not\nlooking to push changes back, and I've done this before, yet now (1.6.3\nand 1.6.3.1) it's not working.\n\tThe clone command and error is:\n\n$ git svn clone --stdlayout --no-metadata -Aauthors  http://oss.oracle.com/projects/oracleasm/src/ driver-git\nInitialized empty Git repository in\n/build/jlbec/oracleasm/driver-git/.git/\n\tA\tkernel/osm.c\n\tA\tConfigure\n\tA\tinclude/osmprivate.h\n\tA\tinclude/arch-i386/osmstructures.h\n\tA\tinclude/osmlib.h\n\tA\tinclude/osmerror.h\n\tA\tlibosm/osmlib.c\n\tA\tMakefile\nr1 = d855bc271ef7dcf70a58ae35fde5dc49f28d3e8e (trunk)\nmissing UUID at the end of .git/svn/trunk/.rev_db.????????-????-????-????-???????????? at /usr/lib/git-core/git-svn line 4488\n\nYou can drop the --no-metadata if you like - it doesn't help.  Clearly\nit's tripping on the first revision.  I'm not sure what UUID it's\nlooking for.  The manpage speaks of UUIDs in regards to svk/svnsync, and\nI'm not using those.\n\tI suspect the last time I did this was in the 1.5 range (my\ndistribution has obviously moved on).  But I would think this was tested\n:-)\n\nJoel\n\n-- \n\n\"Behind every successful man there's a lot of unsuccessful years.\"\n        - Bob Brown\n\nJoel Becker\nPrincipal Software Developer\nOracle\nE-mail: joel.becker@oracle.com\nPhone: (650) 506-8127\n"},{"id":"114866","messageId":"86d4c5e00905271911g58cccc1bwd4b881541db6f7a5@mail.gmail.com","threadId":"19542","inReplyTo":"20090527221601.GA12914@mail.oracle.com","subject":"Re: git-svn clone problem","fromName":"Deskin Miller","fromEmail":"deskinm@umich.edu","sentAt":"2009-05-28T02:11:01Z","receivedAt":"2009-05-28T02:11:01Z","isPatch":false,"sender":{"key":"deskinm@umich.edu","avatar":"https://gravatar.com/avatar/d340a0e612cdf0a79535c71863c0b4c535e9aba63b42032226ae903e638b64f9?d=mp&s=160"},"body":"On Wed, May 27, 2009 at 15:16, Joel Becker <Joel.Becker@oracle.com> wrote:\n> Hello everyone,\n>        I've got a fun git-svn bug I can't seem to track down.  The\n> google is no help.  I'm just trying to clone a full repo.  I'm not\n> looking to push changes back, and I've done this before, yet now (1.6.3\n> and 1.6.3.1) it's not working.\n>        The clone command and error is:\n>\n> $ git svn clone --stdlayout --no-metadata -Aauthors  http://oss.oracle.com/projects/oracleasm/src/ driver-git\n> Initialized empty Git repository in\n> /build/jlbec/oracleasm/driver-git/.git/\n>        A       kernel/osm.c\n>        A       Configure\n>        A       include/osmprivate.h\n>        A       include/arch-i386/osmstructures.h\n>        A       include/osmlib.h\n>        A       include/osmerror.h\n>        A       libosm/osmlib.c\n>        A       Makefile\n> r1 = d855bc271ef7dcf70a58ae35fde5dc49f28d3e8e (trunk)\n> missing UUID at the end of .git/svn/trunk/.rev_db.????????-????-????-????-???????????? at /usr/lib/git-core/git-svn line 4488\n>\n> You can drop the --no-metadata if you like - it doesn't help.  Clearly\n> it's tripping on the first revision.  I'm not sure what UUID it's\n> looking for.  The manpage speaks of UUIDs in regards to svk/svnsync, and\n> I'm not using those.\n>        I suspect the last time I did this was in the 1.5 range (my\n> distribution has obviously moved on).  But I would think this was tested\n> :-)\n>\n> Joel\n>\n> --\n>\n> \"Behind every successful man there's a lot of unsuccessful years.\"\n>        - Bob Brown\n>\n> Joel Becker\n> Principal Software Developer\n> Oracle\n> E-mail: joel.becker@oracle.com\n> Phone: (650) 506-8127\n\nThe problem here isn't with git-svn; rather, it is with the svn\nrepository at oss.oracle.com claiming a nonsensical UUID.  svn uses\nUUIDs behind the scenes to identify each repository, and git-svn does\nthe same thing.  When doing git svn init (or clone, which is just init\n&& fetch) the svn server sends back a UUID which identifies it.  When\nI use wireshark and expand the first HTTP packet back from a good svn\nserver, I see something like the following embedded in the xml tree:\n\n<lp3:repository-uuid>\n612f8ebc-c883-4be0-9ee0-a4e9ef946e3a\n</lp3:repository-uuid>\n\nHowever when I do the same with oss.oracle.com I see\n\n<lp2:repository-uuid>\n????????-????-????-????-????????????\n</lp2:repository-uuid>\n\ngit-svn tries to play along for a while, but the bottom line is that a\nstring of question marks isn't a UUID.\n\nThere's more about svn's use of UUIDs in the svn book.  Perhaps the\nadmin of oss.oracle.com can correct this UUID problem so one can use\ngit-svn with this repository.\n\nDeskin Miller\n"},{"id":"114871","messageId":"20090528024153.GH12914@mail.oracle.com","threadId":"19542","inReplyTo":"86d4c5e00905271911g58cccc1bwd4b881541db6f7a5@mail.gmail.com","subject":"Re: git-svn clone problem","fromName":"Joel Becker","fromEmail":"joel.becker@oracle.com","sentAt":"2009-05-28T02:41:53Z","receivedAt":"2009-05-28T02:41:53Z","isPatch":false,"sender":{"key":"joel.becker@oracle.com","avatar":null},"body":"On Wed, May 27, 2009 at 07:11:01PM -0700, Deskin Miller wrote:\n> The problem here isn't with git-svn; rather, it is with the svn\n> repository at oss.oracle.com claiming a nonsensical UUID.  svn uses\n> UUIDs behind the scenes to identify each repository, and git-svn does\n> the same thing.  When doing git svn init (or clone, which is just init\n> && fetch) the svn server sends back a UUID which identifies it.  When\n> I use wireshark and expand the first HTTP packet back from a good svn\n> server, I see something like the following embedded in the xml tree:\n> \n> <lp3:repository-uuid>\n> 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a\n> </lp3:repository-uuid>\n> \n> However when I do the same with oss.oracle.com I see\n> \n> <lp2:repository-uuid>\n> ????????-????-????-????-????????????\n> </lp2:repository-uuid>\n> \n> git-svn tries to play along for a while, but the bottom line is that a\n> string of question marks isn't a UUID.\n> \n> There's more about svn's use of UUIDs in the svn book.  Perhaps the\n> admin of oss.oracle.com can correct this UUID problem so one can use\n> git-svn with this repository.\n\n\tIs this some new feature of svn that git-svn has decided to\nrequire?  We're running subversion 1.4.4 there, and git-svn used to work\nagainst those repos.\n\tHmm, it's only a couple of very old repos with this problem -\nthey were probably created with subversion 1.1 or 1.0.  I found how to\nfix it.  Thanks.\n\nJoel\n\n-- \n\n\"People with narrow minds usually have broad tongues.\"\n\nJoel Becker\nPrincipal Software Developer\nOracle\nE-mail: joel.becker@oracle.com\nPhone: (650) 506-8127\n"},{"id":"114899","messageId":"op.uumqk2gt1e62zd@merlin.emma.line.org","threadId":"19542","inReplyTo":"20090528024153.GH12914@mail.oracle.com","subject":"Re: git-svn clone problem","fromName":"Matthias Andree","fromEmail":"matthias.andree@gmx.de","sentAt":"2009-05-28T07:47:16Z","receivedAt":"2009-05-28T07:47:16Z","isPatch":false,"sender":{"key":"matthias.andree@gmx.de","avatar":null},"body":"Am 28.05.2009, 04:41 Uhr, schrieb Joel Becker <Joel.Becker@oracle.com>:\n\n> On Wed, May 27, 2009 at 07:11:01PM -0700, Deskin Miller wrote:\n>> The problem here isn't with git-svn; rather, it is with the svn\n>> repository at oss.oracle.com claiming a nonsensical UUID.  svn uses\n>> UUIDs behind the scenes to identify each repository, and git-svn does\n>> the same thing.  When doing git svn init (or clone, which is just init\n>> && fetch) the svn server sends back a UUID which identifies it.  When\n>> I use wireshark and expand the first HTTP packet back from a good svn\n>> server, I see something like the following embedded in the xml tree:\n>>\n>> <lp3:repository-uuid>\n>> 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a\n>> </lp3:repository-uuid>\n>>\n>> However when I do the same with oss.oracle.com I see\n>>\n>> <lp2:repository-uuid>\n>> ????????-????-????-????-????????????\n>> </lp2:repository-uuid>\n>>\n>> git-svn tries to play along for a while, but the bottom line is that a\n>> string of question marks isn't a UUID.\n>>\n>> There's more about svn's use of UUIDs in the svn book.  Perhaps the\n>> admin of oss.oracle.com can correct this UUID problem so one can use\n>> git-svn with this repository.\n>\n> \tIs this some new feature of svn that git-svn has decided to\n> require?  We're running subversion 1.4.4 there, and git-svn used to work\n> against those repos.\n> \tHmm, it's only a couple of very old repos with this problem -\n> they were probably created with subversion 1.1 or 1.0.  I found how to\n> fix it.  Thanks.\n\nHi Joel,\n\ncould you share a pointer to or outline of the solution with the list, for  \nthe completeness of the (searchable) archives?\n\nThanks.\n\n-- \nMatthias Andree\n"},{"id":"114933","messageId":"20090528172207.GB315@mail.oracle.com","threadId":"19542","inReplyTo":"op.uumqk2gt1e62zd@merlin.emma.line.org","subject":"Re: git-svn clone problem","fromName":"Joel Becker","fromEmail":"joel.becker@oracle.com","sentAt":"2009-05-28T17:22:07Z","receivedAt":"2009-05-28T17:22:07Z","isPatch":false,"sender":{"key":"joel.becker@oracle.com","avatar":null},"body":"On Thu, May 28, 2009 at 09:47:16AM +0200, Matthias Andree wrote:\n> Am 28.05.2009, 04:41 Uhr, schrieb Joel Becker <Joel.Becker@oracle.com>:\n>\n>> On Wed, May 27, 2009 at 07:11:01PM -0700, Deskin Miller wrote:\n>>> The problem here isn't with git-svn; rather, it is with the svn\n>>> repository at oss.oracle.com claiming a nonsensical UUID.  svn uses\n>>> UUIDs behind the scenes to identify each repository, and git-svn does\n>>> the same thing.  When doing git svn init (or clone, which is just init\n>>> && fetch) the svn server sends back a UUID which identifies it.  When\n>>> I use wireshark and expand the first HTTP packet back from a good svn\n>>> server, I see something like the following embedded in the xml tree:\n>>>\n>>> <lp3:repository-uuid>\n>>> 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a\n>>> </lp3:repository-uuid>\n>>>\n>>> However when I do the same with oss.oracle.com I see\n>>>\n>>> <lp2:repository-uuid>\n>>> ????????-????-????-????-????????????\n>>> </lp2:repository-uuid>\n>>>\n>>> git-svn tries to play along for a while, but the bottom line is that a\n>>> string of question marks isn't a UUID.\n>>>\n>>> There's more about svn's use of UUIDs in the svn book.  Perhaps the\n>>> admin of oss.oracle.com can correct this UUID problem so one can use\n>>> git-svn with this repository.\n>>\n>> \tIs this some new feature of svn that git-svn has decided to\n>> require?  We're running subversion 1.4.4 there, and git-svn used to work\n>> against those repos.\n>> \tHmm, it's only a couple of very old repos with this problem -\n>> they were probably created with subversion 1.1 or 1.0.  I found how to\n>> fix it.  Thanks.\n>\n> Hi Joel,\n>\n> could you share a pointer to or outline of the solution with the list, \n> for the completeness of the (searchable) archives?\n\n\tSure.  I went to the svn book, this part:\n\nhttp://chestofbooks.com/computers/revision-control/subversion-svn/Managing-Repository-UUIDs-Reposadmin-Maint-Uuids.html\n\n\tMy server's running 1.4.4, so the 1.5 command 'svnadmin setuuid\n/var/svn/repos' will not work.  Instead I used the second method.  I\ncreated a shell function to generate the uuid:\n\n  uu() {\n      echo SVN-fs-dump-format-version: 2;\n      echo;\n      echo -n \"UUID: \";\n      uuidgen;\n  }\n\nI then used that with the second method to update my repositories:\n\n  # uu | svnadmin load --force-uuid /var/svn/repos\n\nObviously I replaced '/var/svn/repos' with my own repository paths.\n\tIt's nice that Subversion uses standard UUIDs.  It works\ndirectly with  uuidgen.\n\nJoel\n\n-- \n\n\"The lawgiver, of all beings, most owes the law allegiance.  He of all\n men should behave as though the law compelled him.  But it is the\n universal weakness of mankind that what we are given to administer we\n presently imagine we own.\"\n        - H.G. Wells\n\nJoel Becker\nPrincipal Software Developer\nOracle\nE-mail: joel.becker@oracle.com\nPhone: (650) 506-8127\n"}]}