logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: File diff command-line UI thoughts: msg#00066

Subject: Re: File diff command-line UI thoughts
Kevin Smith <monotone@xxxxxxxxxxxxxxx> writes:

> Other monotone commands require you to specify the type of the id,
> such as "manifest" or "file". Which, by the way, I find slightly
> irritating. Why can't it just figure out whether I have given it a
> file's id or a manifest's id, and do the right thing?

because if I only write "a3f" there's actually a reasonable chance of
it completing differently as a file or a manifest. remember we accept
unambiguous SHA1 prefixes :(

I'd accept patches which change: "monotone cmd file <id>" to "monotone
fcmd <id>", or providing the latter as a synonym. or if you can figure
something else which feels better, by all means try it.

> Anyway, without changing the existing ui, the best I can think of is
> to add a 'filediff' or 'fdiff' command. But I still have ambiguity
> between the second and third command formats shown above. Any
> thoughts on how the file diff command should really be added?

iirc njs and tromey suggested "sub-command arguments" for this
problem, i.e. "monotone diff -r <id> -f <filename>", or such.

I suppose I'd be OK with that, or with trying on a heuristic. say
check to see if the argument is the name of a file in the manifest,
and if not (and if it's pure hex digits) try expanding it. it might be
nice to have a way of marking an argument as an explicit path or id,
though, for machine-operation (vc-monotone.el, say)

generally I'm pretty flexible on the UI. it's a matter of what feels
best for the most users. that's empirical; we have to try stuff and
take feedback. I don't mind changing it around to suit preferences.

-graydon


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe