Re: fedpkg switch-branch behavior

2011-01-14 Thread Jesse Keating
On 1/14/11 1:53 AM, Andreas Schwab wrote: > John Dennis writes: > >> I recently got slightly burned by an unexpected behavior with >> switch-branch. Apparently after switching branches fedpkg does not do a >> pull, I'm not sure if this is right or wrong, I can see arguments on >> both sides. L

Re: fedpkg switch-branch behavior

2011-01-14 Thread Andreas Schwab
John Dennis writes: > I recently got slightly burned by an unexpected behavior with > switch-branch. Apparently after switching branches fedpkg does not do a > pull, I'm not sure if this is right or wrong, I can see arguments on > both sides. Let me give an example: > > foo (master)$ fedpkg sw

Re: fedpkg switch-branch behavior

2011-01-13 Thread Jesse Keating
On 1/13/11 10:47 AM, Matt McCutchen wrote: > On Thu, 2011-01-13 at 10:42 -0800, Jesse Keating wrote: >> There is the case that when >> we switch to the branch, your last used state is behind or ahead the >> local index (that is the cached metadata the repo has about the state of >> each branch upst

Re: fedpkg switch-branch behavior

2011-01-13 Thread Todd Zullinger
Jesse Keating wrote: > At most, we could warn about your status compared to the local > index, a simple "git status" would show that. We cannot warn about > your stats compared to upstream without fetching new data. For folks with recent git (anything in Fedora will do, EPEL, not so much), there'

Re: fedpkg switch-branch behavior

2011-01-13 Thread Matt McCutchen
On Thu, 2011-01-13 at 10:42 -0800, Jesse Keating wrote: > There is the case that when > we switch to the branch, your last used state is behind or ahead the > local index (that is the cached metadata the repo has about the state of > each branch upstream). Please call it the remote-tracking branch

Re: fedpkg switch-branch behavior

2011-01-13 Thread Jesse Keating
On 1/13/11 8:39 AM, John Dennis wrote: > I recently got slightly burned by an unexpected behavior with > switch-branch. Apparently after switching branches fedpkg does not do a > pull, I'm not sure if this is right or wrong, I can see arguments on > both sides. Let me give an example: > > foo (

Re: fedpkg switch-branch behavior

2011-01-13 Thread Roland McGrath
That is consistent with the normal git workflow. Since fedpkg is a helper around simple git operations, it would make sense for it to give you a message saying you might want to pull, and to have a --pull option to do it for you. -- devel mailing list devel@lists.fedoraproject.org https://admin.f

fedpkg switch-branch behavior

2011-01-13 Thread John Dennis
I recently got slightly burned by an unexpected behavior with switch-branch. Apparently after switching branches fedpkg does not do a pull, I'm not sure if this is right or wrong, I can see arguments on both sides. Let me give an example: foo (master)$ fedpkg switch-branch f14 foo (f14)$ You c