I did some back searching and found out that this feature does not exist in fossil. I will probably use a script to get the results I want. Thanks for the find/awk idea. I'm doing most of my work on windows but have the Cygwin stuff installed so something close to that should work.
Thanks all for the responses. Tony --- On Thu, 4/7/11, Bill Burdick <[email protected]> wrote: From: Bill Burdick <[email protected]> Subject: Re: [fossil-users] Commit Question To: [email protected] Date: Thursday, April 7, 2011, 4:38 PM Well then, nothing could be simpler than this! (of course you could put it into a script -- this is for *NIX) find $(fossil changes | awk '{print $2}') -wholename "$dir/*" | xargs fossil commit or, if you don't like find and awk, you can execute this from the top dir in the project... echo "select pathname from vfile where chnged = 1 and pathname like '$dir/%';" | fossil sqlite _FOSSIL_ | xargs fossil commit Bill 2011/4/7 Lluís Batlle i Rossell <[email protected]> On Thu, Apr 07, 2011 at 02:39:30PM -0500, Bill Burdick wrote: > Are you on *NIX or Windows? If you're on *NIX, you can use fossil commit > $(find dir -type f) or find dir -type f | xargs fossil commit I think it is not that easy! :) fossil commit only likes the files that have changed. > On Thu, Apr 7, 2011 at 5:14 AM, Anthony Jefferson > <[email protected]>wrote: > > > Typically when I do a commit I simply do : > > > > fossil commit > > > > From inside the tree of managed artifacts. However, yesterday I realized I > > was working on 2 different problems and wanted to commit only the single > > directory tree I was in. I looked up the syntax a realized I could give the > > commit command a list of files. > > > > Question: > > > > Is there a way to do a commit on an sub-hierarchy of files e.g. commit from > > a starting directory? > > > > I got the effect I wanted using individual files but it would have been > > easier to simply supply a directory name such as: > > > > fossil commit directory-x > > > > Thanks, > > Tony Jefferson > > > > > > _______________________________________________ > > fossil-users mailing list > > [email protected] > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > > > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -----Inline Attachment Follows----- _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

