bugmonotone - Bugs: bug #14404, ticker default to "dot"...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14404: ticker default to "dot" but UI says "count"

Submitted by:  None
Submitted on:  Sun 04 Sep 2005 11:12:10 PM UTC  
 
Category: command line UISeverity: 3 - Normal
Item Group: documentation issueStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

monotone 0.22 (base revision: 28058ae3e850229a5d8fae65415cbbf82b435377)
Running on: Windows NT/2000/XP (5.2, build 3790) on ia32 (level 15, rev 1802)

Tue 06 Sep 2005 07:42:30 AM UTC, comment #5:

TERM doesn't help by itself; the problem is that we want to switch to the dot ticker when our output is redirected to a log file, because the normal count tickers leave unreadable crud in that case. And environment variables don't tell you when output has been redirected, only things like isatty() -- but apparently Win32 isatty() returns false for cygwin terminals.

The CYGWIN environment variable has a "tty"/"notty" switch:
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
but I don't know if it's relevant here.

Nathaniel Smith <njs>
Project Member
Tue 06 Sep 2005 07:27:59 AM UTC, comment #4:

Maybe checking about the TERM environ or something?
Or, I could ask about it in the -unavailable- mailing list.

Lapo Luchini <lapo>
Tue 06 Sep 2005 07:18:12 AM UTC, comment #3:

Mainline got a patch to let it detect cmd.exe windows properly. Apparently we can't detect cygwin or mingw/msys terminals, though, unless someone gives us a clever way. So I guess I'll close this for now.

Nathaniel Smith <njs>
Project Member
Mon 05 Sep 2005 12:20:42 PM UTC, comment #2:

> Are you using the mingw-compiled monotone (e.g., the binary we distribute)?


Exactly.

> What terminal are you using it with?


cygwin's W11 rxvt with zsh (my favorite), but I also just checked in Windows default cmd.exe, with same results.
(maybe the fact that I use WinXP x64 could be the reason of it? personally I doubt it)

Lapo Luchini <lapo>
Mon 05 Sep 2005 04:17:32 AM UTC, comment #1:

Ah, this is because the default is actually to try and figure out whether you're running in a terminal that can properly display count-style tickers, and then use either count or dot tickers depending on that.

I'm just removed the "[count]" from the help string, since it isn't really true, but it looks like there's another bug here, that monotone for some reason can't tell that it's being called from an interactive terminal. Are you using the mingw-compiled monotone (e.g., the binary we distribute)? What terminal are you using it with?

Nathaniel Smith <njs>
Project Member
Sun 04 Sep 2005 11:12:10 PM UTC, original submission:

% monotone --help
[...]
--ticker=STRING set ticker style (count|dot|none) [count]
[...]
% monotone sync
[...]
monotone: ticks: c="certs"/256, k="keys"/1, r="revisions"/64
monotone: ckr
[...]
% monotone --ticker=count sync
[...]
monotone: certs | keys | revisions
monotone: 132 | 1 | 33
[...]

Of course this is very low priority, but for the sake of perfectness 0=)

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 06 Sep 2005 07:18:12 AM UTCnjsStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Mon 05 Sep 2005 01:35:51 AM UTClapoCarbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup1