/srv/irclogs.ubuntu.com/2009/03/26/#ubuntu-x.txt

=== popey_ is now known as popey
=== tjaalton_ is now known as tjaalton
tjaaltonbryce: the latest change in xorg-server touched mi/mipointer.c directly?21:23
tjaaltonalso, there probably are more changes uploaded in the queue, but not pushed to git?21:23
brycetjaalton: not on my end; everything's pushed that I added21:26
bryce(afaik - caveat that I'm still a klutz at git)21:26
brycehmm, I did the mi/mipointer.c change as a patch, not directly to the code.  Are you seeing differently?21:30
tjaaltonno, looking at gitweb21:30
tjaaltonand that's the only commit pushed21:30
tjaalton(since the patch by kees)21:30
tjaaltonhum, I mean "yes, seeing differently"21:31
brycehmm, everything is committed to my git tree, and git push origin ubuntu says it's all up there21:32
brycebryce@chideok:~/src/xorg-server/xorg-server-ubuntu-git$ git diff21:32
brycebryce@chideok:~/src/xorg-server/xorg-server-ubuntu-git$ git status21:32
bryce# Not currently on any branch.21:32
brycenothing to commit (working directory clean)21:32
brycebryce@chideok:~/src/xorg-server/xorg-server-ubuntu-git$ git commit -a21:32
bryce# Not currently on any branch.21:32
brycenothing to commit (working directory clean)21:32
brycebryce@chideok:~/src/xorg-server/xorg-server-ubuntu-git$ git push origin ubuntu21:32
bryceEverything up-to-date21:32
bryceis git tricking me?21:32
tjaaltonyou are not on a branch21:33
tjaaltonalways checkout your local branch first, then work on it and push21:33
tjaaltongit checkout -b ubuntu origin/ubuntu21:33
brycebryce@chideok:~/src/xorg-server/xorg-server-ubuntu-git$ git checkout -b ubuntu origin/ubuntu21:33
brycefatal: git checkout: branch ubuntu already exists21:33
tjaaltonso 'git checkout ubuntu'21:34
brycehrm, that's my working branch that I developed the patch on21:34
brycethat's not what I wanted to commit21:35
tjaaltonheh21:35
bryceso you're telling me all the work I did in git since then is lost21:35
tjaaltongit checkout -b workingbranch origin/upstream-experimental ?-)21:35
brycebleah, why are we using git again?21:35
brycehrm21:35
tjaaltonmaybe you have a branch where they are21:36
brycenope21:36
tjaaltonno way to pull stuff from git -> bzr21:36
tjaaltonand upstream is using git, debian too21:36
hyperairyes there is21:36
hyperairbzr-fast-export21:36
hyperairit's a script someone gave me21:37
hyperairbzr-fast-export /path/to/bzr | git-fast-import21:37
brycewell I don't pull stuff from git anyway; I use git show <blah> > blah.patch and then include that21:37
tjaaltonwell, I'm pretty sure it only messes things up21:37
hyperairoh wait. git -> bzr21:37
hyperairbzr-fast-export only does bzr -> git 21:37
hyperair=p21:37
tjaaltonI'm not sure why it allows to commit if you're not on a branch though21:38
tjaaltonand just working with a source package means no collaboration, within ubuntu or with debian21:39
brycehere I was thinking, "Gee I'm actually seeing some usefulness from git for once, being able to do my work in git while we're in freeze, without uploading until the changes have been reviewed/tested"21:39
tjaaltonwell, I don't know how you ended up in origin/ubuntu :)21:40
hyperairlol21:40
brycetjaalton: well that may be true, but from my perspective it doubles the amount of time it takes to do simple stuff, and triples the number of command sequences I have to memorize ;-)21:40
hyperairprobably git checkout origin/ubuntu21:40
hyperairbryce: in the hands of an experienced git user, it works blazingly fast compared to other SCMs21:41
hyperairand skipping the tutorial doesn't work, as i've learnt the hard way21:41
RAOFhyperair: Apparently the launchpad team is turning on the bzr-git support, so there'll soon be bzr mirrors of git trees.21:41
tjaaltondon't know how the different style commit-id's are going to work21:42
hyperairRAOF: cool. but one bzr branch per git branch? 21:43
RAOFhyperair: No idea.21:43
hyperairtjaalton: copy paste lol21:43
tjaaltonbryce: well, it's only ~6 you need (add, commit, push, checkout, diff, show)21:43
hyperairtjaalton: oh regarding bzr-git eh..21:43
hyperairbzr will probably renumber21:43
hyperairlike how it does svn21:43
RAOFpull, reset, ... ;)21:43
tjaaltonreset, yes21:43
tjaaltonand pull of course hehe21:44
brycetjaalton: and branch, log, pull, reset21:44
tjaaltonso 1021:44
brycebut the hard part is remembering all the bits after the command21:44
tjaaltonstill, it's the same with every VCS21:44
brycelike origin ubuntu sometimes vs origin/ubuntu other times21:44
* RAOF finds the hard part is remembering that sometimes reset is revert, and sometimes checkout is revert.21:44
tjaaltonjust push origin, if you haven't touched debian-*21:44
hyperairbryce: origin/ubuntu = branch. origin = remote nickname, ubuntu = remote branch21:44
bryceand all the options like -a for commit, -f for add if it's a patch, etc.21:45
hyperairRAOF: no, reset and checkout do different things21:45
RAOFhyperair: Except that they don't.21:45
hyperairbryce: -a if you don't want to stage. -f i have never used21:45
hyperairRAOF: yes they do21:45
RAOFhyperair: reset is "revert the whole tree", checkout is "revert this file".21:45
hyperairRAOF: not necessarily21:45
hyperairRAOF: checkout is reset --hard21:45
hyperair=p21:45
brycehyperair: you don't need to explain what they mean, obviously I know else I wouldn't be rattling them all off!  ;-)21:45
hyperairbut for just this file21:45
hyperairbut reset can be used on individual files, you just don't get the effect of --hard21:46
hyperairbryce: right.21:46
RAOFWhich brings us to the index... ;)21:46
brycehyperair: although the fact that you see the need to explain them sort of proves my point ;-) ;-)21:46
tjaaltonreset is very useful, I use it all the time when I mess things up..21:46
hyperairyeah the staging thing is what sets git apart from others in terms of workflow =\21:46
hyperairtjaalton: same here21:46
RAOFRight.  It'd be even better if there was an actual 'revert', which did what you wanted.21:46
RAOF"make $file (or working tree if no file is specified) the same as the last commit".21:47
tjaaltongit revert?21:47
bryceanyway --> lunch.  bbiab21:47
RAOFtjaalton: No, that reverts a commit :)21:48
tjaaltonoh right, didn't read enough :)21:48
tormodgit reset --hard "reverts"21:48
tjaaltonyep21:48
RAOFOnly the whole tree.21:48
RAOFIf you want to revert a file, it's "git checkout refspec filename", IIRC.21:48
RAOFWhere refspec is HEAD.21:49
RAOFPossibly there needs to be some -- in there, too :)21:49
hyperairRAOF: git co HEAD -- file21:49
RAOFhyperair: OK.  You do need the -- in there.21:50
hyperairheheh21:50
hyperaircheckout is one hell of a command21:50
hyperairit changes branches, creates branches, and reverts stuff21:50
hyperairoh don't forget git stash21:50
RAOFYup.  It should be 3 commands, obviously :)21:50
hyperairheh yeah21:51
hyperairso do you feel like making an alternative git?21:51
RAOFNo.  The bzr team already has.21:51
hyperairone that responds to different commands, and does what you think it should? ;)21:51
hyperairwhen bzr achieves multiple branches in one directory, i'll agree with you =\21:51
tjaaltonit doesn't?21:51
hyperairno it doesn't21:52
tjaaltonhuh21:52
hyperaireach branch is a directory of its own21:52
hyperairbzr branch dir1 dir221:52
hyperairand there you go, you get two branches21:52
RAOFI actually like that, but I can see why others don't.21:52
hyperairdir2 is the branch of dir121:52
hyperairi liked it too, at first21:52
RAOFIt makes it more obvious how to actually get a branch :)21:52
hyperairin fact, i was apalled when i found out git had all branches in one directory21:52
hyperairbut then, eventually21:53
hyperairi had so damn many branches, i needed to store them all in one directory21:53
tjaaltonI never used any other VCS before git.. so maybe it was easier to grok because of that21:53
RAOF"bzr cbranch" can get you approximately that behaviour, but it's not quite the same.e21:53
hyperairand because i had so many duplicate copies of the same thing, i ran out of disk space.21:54
RAOFAgain, cbranch.21:54
RAOFBut yeah.  Sometimes it's useful to have all the branches hidden in a single directory.21:54
hyperairnot just that21:57
hyperairbranches mostly have a lot of similar data21:57
hyperairwell i suppose a bzr init-repo and dumping all the branches there would work21:57
hyperairbut actually after bzr kept spewing out exceptions about godknowswhatRoot not being compatible with godknowswhat rich root pack godknows what else, i gave up21:58
hyperairand git has _never_ spit out an exception with as cryptic a message as that21:58
hyperairoh yeah, i also lost the capability to merge my branches21:58
hyperairfor some reason or other21:58
RAOFHeh.  Cryptic in the eye of the beholder, obviously.21:59
hyperairbut of course22:04
hyperairbut hey, git has never complained about a repository or branch not being compatible with another22:05
RAOFRight.  bzr repository formats need to stop shifting.22:05
hyperairi mean hey if you want to have so many different types of repositories/branches, at least make them compatible22:05
hyperairthe user shouldn't need to see these kind of cryptic messages22:05
hyperairthey're not even google-able for the love of god22:06
RAOFThey are, mostly.  But rich-root has to be incompatible with non-rich-root, because non-rich-root stores less information.22:06
hyperairthen _warn_ me, and ask whether to proceed or not!22:06
hyperairi'd like to be notified that there will be loss of data, _what_ data, then maybe i can decide whether i still need this data or not22:07
hyperairi don't even know what's lost between rich-root and non-rich-root22:07
ericyo23:50
=== eric is now known as Guest35094
=== Guest35094 is now known as LLStarks

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!