[00:56] can i apply a git patch to bzr? including author and comment? [00:56] is that in the git plugin? [00:56] jelmer: [01:06] JPeterson: 'bzr git-apply' does some of that [01:06] JPeterson: it doesn't cope with new files at all though [01:06] thx [01:06] (and is still very experimental in general) [01:07] JPeterson: in other words, use with care [02:24] jelmer how do i bzr pull --rebase? [02:24] i want to pull a remote branch to a new branch [02:24] there is 'bzr rebase --pull' I think, perhaps that's what you mean? [02:24] so i created a new local branch to pull to [02:25] so it's " --pull' I think, perhaps that's what you mean? [02:25] [03:24] so i create [02:25] ops [02:25] so it's "bzr rebase --pull lp:~john-peterson/calibre/context"? [02:25] that returns "bzr: ERROR: no such option: --pull" [02:26] JPeterson: oh, actually I think the default 'bzr rebase does what you are asking about [02:27] (or maybe it just tells you to pull if pulling is possible?) [02:27] ok i'll try "bzr rebase lp:~john-peterson/calibre/context" [02:30] it returns [02:30] Contents conflict in src/calibre/utils/fonts/subset.py [02:30] that's unexpected because rebase will not consider conflicts [02:31] how do i [02:31] Resolve the conflict and run 'bzr rebase-continue' [02:32] JPeterson: I'm not sure I follow - rebase can cause conflicts in git too [02:32] how do i force revert rebase? [02:32] "bzr rebase-abort" [02:33] why not bzr rebase-continue? [02:35] how do i resolve the conflict by using the remove version? [02:35] *remote [02:36] JPeterson: if you mean to abort (iow, revert) the rebase, that's what 'bzr rebase-abort' does [02:36] JPeterson: 'bzr rebase-continue' will continue the rebase once conflicts have been resolved [02:36] what i mean is ignore conflicts or use the remove version, and force it to complete [02:36] bzr resolve; bzr rebase-continue [02:37] return [02:37] Remaining conflicts: [02:37] Contents conflict in src/calibre/utils/fonts/subset.py.THIS [02:37] bzr: ERROR: There are still conflicts present. Resolve the conflicts and then run 'bzr resolve' and try again. [02:37] JPeterson: see the help on 'bzr resolved' [02:37] JPeterson: you need to resolve the conflicts by editing the file, or explicitly specify what you want to happen to 'bzr resolve' [02:37] so do i add a dot, as in and try again. [02:37] [03:36] J [02:37] ?ops [02:38] as in bzr resolve . [02:38] i did [02:38] JPeterson: that doesn't matter; 'bzr resolve' will only mark things as resolved if the conflict markers are gone *or* if you have specified an explicit action to take [02:38] bzr resolve src/calibre/utils/fonts/subset.py.THIS [02:38] now [02:38] bzr resolve; bzr rebase-continue [02:39] return [02:39] Remaining conflicts: [02:39] Contents conflict in src/calibre/utils/fonts/subset.py.THIS.THIS [02:39] bzr: ERROR: There are still conflicts present. Resolve the conflicts and then run 'bzr resolve' and try again. [02:39] it added another .THIS, compared to the previous message [02:39] JPeterson: you'd want to resolve the file itself, not its .THIS file [02:39] bzr resolved src/calibre/utils/fonts/subset.py [02:39] returns [02:39] src/calibre/utils/fonts/subset.py does not exist [02:40] 0 conflicts resolved, 1 remaining [02:40] i'll try [02:40] bzr uncommit -r-100 [02:40] and try rebase again [02:41] maybe it will be easier to rebase forward [02:52] rebase is almost exclusively useful for rebasing a few trivial local changes on top of an upstream branch [02:52] it's not very advanced [02:52] JPeterson: ^ [02:55] jelmer: then i shouldnt use it checkout a remote branch [02:55] then i should uncommit the local branch to before the remote branch and pull it [02:56] jelmer: am i correct to assume that "bzr fast-export --plain .|git fast-import" will also convert bzr branches to git branches? [02:57] JPeterson: that will convert a bzr branch to a git branch; not sure what you mean by "also" though [02:59] jelmer: how do i convert all bzr branches to git branches? [03:03] jelmer: whats the --export-marks and --import-marks for in http://dgleich.wordpress.com/2011/01/22/convert-bazaar-to-git/ [03:09] why doesnt "man bzr fast-export" return what I want? [03:09] where is the bzr fast-export manual? [03:16] how do i access the repo from a different path? [03:17] accessing the repo from "~/shared.hgfs/source/Programs/calibre/repo" return "bzr: ERROR: Not a branch: "/C:/Files/Source/Programs/calibre/repo/"." [03:18] can i change something to a relative path? or do need to change the full path? in that case where? [03:18] jelmer: [03:19] it seems like it's [03:19] cat .bzr/branch/location [03:19] that is related to that message [03:20] can i change [03:20] file:///C:/Files/Source/Programs/calibre/repo/ [03:20] to [03:20] . [03:24] bzr switch context [03:24] return [03:24] bzr: ERROR: Not a branch: "/mnt/hgfs/shared/source/Programs/calibre/repo/,branch=context/". [03:25] why? how do i fix it? [03:26] the goal is to run "bzr fast-export --plain --git-branch=context|git fast-import" [03:29] (from linux as running it from cygwin return "error: git-fast-import died of signal 11") [03:30] jelmer if you wont answer this, then answer this how do i move a bzr repo? [03:30] so that i can use it from another path [03:32] i.o.w. how do i deal with .bzr/branch/location? [03:36] where is the bzr 2.6 ppa? [03:40] "sudo add-apt-repository -y ppa:bzr/ppa" didnt update it to 2.6 [03:41] ok it's "sudo add-apt-repository -y ppa:bzr/beta" [03:43] bzr branches [03:43] return [03:43] bzr: ERROR: Not a branch: "/mnt/hgfs/shared/source/Programs/calibre/repo/,branch=context/". [03:43] how does it come to that conclusion? [03:45] so does "bzr switch context" [03:47] it seems like "bzr switch --force context" works [03:48] ah ok it needs to be "file:///mnt/hgfs/shared/source/Programs/calibre/repo/" [06:31] can i export bzr commits to a git patch? [06:35] piping bzr log to a file should create a patch file [06:35] so like bzr log -r 1..5 > someFile.patch [06:43] mgrandi: i want the comment, date, author [06:44] with git patch i mean "git format-patch" [06:45] the commit sha1 can be anything, it doesnt matter [06:45] it would be surprising if there was not a way to do this [06:45] because of how simple if would be [06:46] what do you mean format-patch, not familiar with it [06:46] like a patch file that you pass to git? or to patch [06:47] ? [06:47] it has patch, comment, date, author [06:47] and parent commit sha1 which is not necessary [06:48] so can i bzr fast-export a limited number of commits? [06:48] probably, using the -r revisionspec thing [06:48] the repo has many commits, 22k, and i only need the top 5 [06:48] so bzr whatever -r -5..-1 [06:49] the bzr fast-export manual doesn't say what -r does [06:49] why would i expect it to export r to head rather than init to r? [06:51] what's the revisionspec for the top five commits? [06:52] it says -r ARG, --revision=ARG [06:52] it says to do bzr help revisionspec [06:52] and i told you, it was -r -5..-1 =P [06:54] also, this patch-format thing looks a lot like 'bzr testament --long" [06:56] or bzr send / bzr email [07:28] how can it be -r-1..-1? isn't that 0 commits? [07:30] omg it returns [07:30] warning: Not updating refs/heads/date (new tip bdf16f0ef570e6bb6e7e620899bee6f0edd69a81 does not contain 476e775c0e5ac5cb457f4c5ffe6a8ca50da662de) [08:56] how do i rename a branch? [11:11] mv [11:31] bzr nick may also interest you [12:35] JPeterson: if you have bzr-git, `bzr send` should have a git-format option iirc [12:36] LarstiQ: thx [14:05] bzr send --format=git [14:05] return [14:05] File "C:/Program Files (x86)/Bazaar/plugins\git\send.py", line 121, in to_lines [14:05] AttributeError: 'NoneType' object has no attribute 'splitlines' [14:06] additional trace is [14:06] File "bzrlib\builtins.pyo", line 5824, in run [14:06] File "bzrlib\send.pyo", line 136, in send [14:06] File "bzrlib\merge_directive.pyo", line 348, in compose_merge_request [14:07] bzr 2.6b1 on python 2.6.6 (Windows-7-6.1.7601-SP1) === yofel_ is now known as yofel [18:40] Hello [18:40] Does bzr allow deleting commits? [18:40] I know that with git+github I can actually delete like the last X commits. Can I do that with bzr+launchpad? [18:42] Munchor: bzr uncommit [18:43] bzr uncommit;bzr uncommit; [18:43] that woudl delete 2 commits, right? [18:46] And jelmer, bzr uncommit removes local commits, not commits on Launchpad AFAIK [18:54] Munchor: bzr push --overwrite to launchpad will do that. Take note though that this will wreak havoc for anyone who already has a copy of what was on launchpad. [18:54] >wreak havoc [18:54] I don't fully understand that [18:55] Munchor: be not nice [18:55] I'm even more confused that [18:56] Munchor: if you delete some commits, and then start developing from there again, your branch will have diverged from what other people had [18:56] Munchor: so they can't simply `bzr pull` to get up to date [18:56] Ooh I see [18:56] and if they had done extra commits on top, merging their work in would resurrect the deleted commits [18:57] Munchor: it's not the end of the world, but it's good to be aware of