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 <virik...@gmail.com> > 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 < > ac_jeffer...@yahoo.com>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 > > > fossil-users@lists.fossil-scm.org > > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > > > > > > > > _______________________________________________ > > fossil-users mailing list > > fossil-users@lists.fossil-scm.org > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users