threads / bug / 3103

cg-update bug?

Subject: cg-update bug?

## tl;dr

4 messages between Jan 19, 2006 and Jan 21, 2006.

replies: 3people: 2as markdown or json

walt· Jan 19, 2006, 14:07 UTC · lore
Hi Petr,

After this commit: commit 476b0a8846f08fed436a393de42d1476c2d97c60 committer Petr Baudis <xpasky@machine.or.cz> Sun, 15 Jan 2006 15:34:55 Make cg-fetch w/o -v be silent about the fetched changes altogether

cg-update is now also silent about fetched changes, but there is no -v flag for cg-update. Could it be added so I can get the old behavior back?

Thanks!
walt· Jan 21, 2006, 15:03 UTC · re: walt · lore

Re: cg-update bug?

walt wrote:
> ...there is no -v flag for cg-update.  Could it be added
> so I can get the old behavior back?

Thanks for adding the flag, Petr. I tried it on git and the kernel this morning, and in each case cg-update -v printed the name of only one file. From looking at the logs I'm pretty sure there were multiple files updated, not just one. Does it print all filenames for you?

Petr Baudis· Jan 21, 2006, 20:35 UTC · re: walt · lore

Re: cg-update bug?

Dear diary, on Sat, Jan 21, 2006 at 04:03:59PM CET, I got a letter where walt <wa1ter@myrealbox.com> said that...

Show 9 quoted lines
> walt wrote:
> > ...there is no -v flag for cg-update.  Could it be added
> > so I can get the old behavior back?
> 
> Thanks for adding the flag, Petr.  I tried it on git and
> the kernel this morning, and in each case cg-update -v
> printed the name of only one file.  From looking at the
> logs I'm pretty sure there were multiple files updated,
> not just one.  Does it print all filenames for you?

It prints all the filenames for me, but only the fetched ones. If you fetched without merge earlier, it will list only the newly fetched stuff. That is rather confusing, so now I added also cg-merge -v and cg-update will pass its -v to cg-merge instead of cg-fetch.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
walt· Jan 21, 2006, 21:59 UTC · re: Petr Baudis · lore

Re: cg-update bug?

Petr Baudis wrote:
Show 7 quoted lines
> Dear diary, on Sat, Jan 21, 2006 at 04:03:59PM CET, I got a letter
> where walt <wa1ter@myrealbox.com> said that...
>> Thanks for adding the flag, Petr.  I tried it on git and
>> the kernel this morning, and in each case cg-update -v
>> printed the name of only one file.  From looking at the
>> logs I'm pretty sure there were multiple files updated,
>> not just one.  Does it print all filenames for you?
> It prints all the filenames for me, but only the fetched ones. If you
> fetched without merge earlier, it will list only the newly fetched
> stuff. That is rather confusing, so now I added also cg-merge -v and
> cg-update will pass its -v to cg-merge instead of cg-fetch.

Well, I was anxious to try your new changes so I did cg-update on your cogito repository and I saw *six* updated files print out.

I guess that both git and the kernel really did have only *one* updated file this morning, after all. A really bizarre coincidence! Thanks again for the update, and I hope your exam went well :o)

← back to recent threads