{"thread":{"id":"35817","subject":"git-remote-bzr: fatal: mark :399654 not declared","startedAt":"2014-02-06T18:05:07Z","lastAt":"2014-04-12T21:20:41Z","messageCount":2,"participants":["Rüdiger Sonderfeld","Felipe Contreras"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"234379","messageId":"8513837.uWFUjXk7Vu@descartes","threadId":"35817","inReplyTo":null,"subject":"git-remote-bzr: fatal: mark :399654 not declared","fromName":"Rüdiger Sonderfeld","fromEmail":"ruediger@c-plusplus.de","sentAt":"2014-02-06T18:05:07Z","receivedAt":"2014-02-06T18:05:07Z","isPatch":false,"sender":{"key":"ruediger@c-plusplus.de","avatar":"https://avatars.githubusercontent.com/u/1803?v=4"},"body":"Hello,\nI'm using git-remote-bzr to access the GNU Emacs Bazaar repo.  I followed the \nguideline described here: \nhttps://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00008.html\n\nPulling and pushing worked flawless for several month.  But recently git \nbzr stopped working with the following error message:\n\n$ git pull\nfatal: mark :399654 not declared\nfast-import: dumping crash report to .git/fast_import_crash_16173\nfatal: Error while running fast-import\nTraceback (most recent call last):\n  File \"/usr/bin/git-remote-bzr\", line 947, in <module>\n    sys.exit(main(sys.argv))\n  File \"/usr/bin/git-remote-bzr\", line 931, in main\n    do_import(parser)\n  File \"/usr/bin/git-remote-bzr\", line 399, in do_import\n    export_branch(repo, name)\n  File \"/usr/bin/git-remote-bzr\", line 327, in export_branch\n    modified_final = export_files(cur_tree, modified)\n  File \"/usr/bin/git-remote-bzr\", line 272, in export_files\n    print d\nIOError: [Errno 32] Broken pipe\n\nAnd the crash report\n\n$ cat .git/fast_import_crash_16173\nfast-import crash report:\n    fast-import process: 16173\n    parent process     : 16172\n    at Thu Feb 6 18:38:00 2014\n\nfatal: mark :399654 not declared\n\nMost Recent Commands Before Crash\n---------------------------------\n  feature done\n  feature import-marks=.git/bzr/origin/marks-git\n  feature export-marks=.git/bzr/origin/marks-git\n  feature force\n  blob\n  mark :399656\n  data 145827\n  blob\n  mark :399657\n  data 19785\n  blob\n  mark :399658\n  data 228415\n  commit refs/bzr/origin/heads/trunk\n  mark :399659\n  author Glenn Morris <rgm@gnu.org> 1391150391 -0800\n  committer Glenn Morris <rgm@gnu.org> 1391150391 -0800\n  data 101\n* from :399654\n\nActive Branch LRU\n-----------------\n    active_branches = 0 cur, 5 max\n\n  pos  clock name\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nInactive Branches\n-----------------\nrefs/bzr/origin/heads/trunk:\n  status      : dirty\n  tip commit  : 0000000000000000000000000000000000000000\n  old tree    : 0000000000000000000000000000000000000000\n  cur tree    : 0000000000000000000000000000000000000000\n  commit clock: 0\n  last pack   :\n\n\nMarks\n-----\n  exported to .git/bzr/origin/marks-git\n\n-------------------\nEND OF CRASH REPORT\n\n$ tail .git/bzr/origin/marks-git\n:399643 b535a54e6bd1b98953aacda8e0c0bd4ffa4348e8\n:399646 2c7d42a26b8984b4492b205f28b0de2ff8548a16\n:399647 408cc787f4764481e8ca10861895970e579dec07\n:399648 798ea0615d18b41dfe0dee321b286fd3570a4352\n:399651 dfba6da980cfe657cb1be302131325011f5eb97d\n:399652 5964046e0475262b27157e39ceb7516b1222330c\n:399653 52dd3850ce599215898f5358997dd07f08c4d607\n:399656 230b94e2fe9c6443b2ada399d8d985c7ae438727\n:399657 8d0fc723f14c9b4a9de30754170b5ca5be21a05a\n:399658 102818c18b5a0724dc1c11dc5dcf5e2ba5b72b22\n\nI'm using git version 1.8.5.3 on Kubuntu 13.10 installed from \nhttps://launchpad.net/~git-core/+archive/ppa.\n\nWhat's wrong and how can I fix this?\n\nRegards,\nRüdiger\n"},{"id":"238794","messageId":"5349ae29eb97b_285f9032ec23@nysa.notmuch","threadId":"35817","inReplyTo":"8513837.uWFUjXk7Vu@descartes","subject":"RE: git-remote-bzr: fatal: mark :399654 not declared","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2014-04-12T21:20:41Z","receivedAt":"2014-04-12T21:20:41Z","isPatch":false,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"Rüdiger Sonderfeld wrote:\n> I'm using git-remote-bzr to access the GNU Emacs Bazaar repo.  I followed the \n> guideline described here: \n> https://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00008.html\n> \n> Pulling and pushing worked flawless for several month.  But recently git \n> bzr stopped working with the following error message:\n\nSorry for the late reply.\n\nSo basically your repository is screwed up. I just sent patches to the Git's\ncore so it doesn't happen again.\n\nTo recover the easiest is to remove these files: .git/bzr/origin/marks-*, in\nyour repository, and then run `git fetch`. However, when you do that basically\nyou have to fetch everything again.\n\nYou could also try this script I wrote[1]. If you run `git marks-check -mbzr -v\n-f origin` it will find all the issues in the mark files and fix them. Then run\n`git fetch` again.\n\nCheers.\n\n[1] https://gist.github.com/felipec/10551806\n\n-- \nFelipe Contreras"}]}