|
From: | Derek Scherger |
Subject: | Re: [Monotone-devel] Re: write access to my public server (was Re: [PATCH] add xemacs ...) |
Date: | Wed, 21 Apr 2004 19:21:01 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040225 |
graydon hoare wrote:
unfortunately revert already takes filenames as an argument. it might make sense to make a manifest and file variant of revert. njs has proposed that maybe commands should just get an 'f' or 'm' prefix, i.e. mrevert or frevert, mlog or flog, mdiff or fdiff. what do you think about that convention?
I've been wondering whether commands like cat and complete really need a file/manifest type at all. Presumably the version codes are unique and only live as either a file or a manifest. What about this:
$ monotone complete 5d 5d2e96646f7be38c0aceacf9331ab687e8130f93 (manifest) $ monotone complete 45 45229a1c4745275390cee1a1a60433db5e82578e (file) Where monotone tells the user what type of object the manifest id refers to?As far as f... and m... command variants go, I think I'd favour a smaller number of commands with some options. Perhaps monotone diff -f for files and monotone diff -m for manifests would be good in cases where the above idea doesn't work.
-- Cheers, Derek
[Prev in Thread] | Current Thread | [Next in Thread] |