Re: [fossil-users] How can I sync with a directory on each commit?

2011-10-27 Thread Kevin Ar18
What about addremove? It won't do the commit, but might get you closer still. Doh, i thought addremove was a hypothetical command, but it really exists. >From my first post: > I tried a number of commands that I thought might do this (like addremove), but could never seem to get it to do wha

Re: [fossil-users] How can I sync with a directory on each commit?

2011-10-27 Thread Stephan Beal
On Thu, Oct 27, 2011 at 1:23 PM, Kevin Greiner wrote: > fossil changes | grep ^MISSING | sed "s/^MISSING *//" | xargs2 /addquotes > fossil rm > Tiny hint: sed '/^MISSING/d' is ever so slightly better (arguably!) for this case, since it does not introduce empty lines (which xargs will just ignor

Re: [fossil-users] How to gdiff two versions of a file?

2011-10-27 Thread Martin Gagnon
On Thu, Oct 27, 2011 at 03:52:04PM +0200, Gilles wrote: > Hello > > After committing the changes I made to a file, I'd like to run the > gdiff application to show the changes between the last revision and > the before-last revision. > > I tried the following, but it doesn't work: >

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Gilles
On Thu, 27 Oct 2011 15:13:58 +0200, Dmitry Chestnykh wrote: >As for why it works this way -- this is just convenient and familiar. >If Fossil worked with absolute paths instead of relative ones, it would >be inconvenient to work with. Thanks for the explanation. _

[fossil-users] How to gdiff two versions of a file?

2011-10-27 Thread Gilles
Hello After committing the changes I made to a file, I'd like to run the gdiff application to show the changes between the last revision and the before-last revision. I tried the following, but it doesn't work: C:\MyProjects>fossil finfo "Project1/Form1.vb" History of Pr

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Dmitry Chestnykh
On Thu, 27 Oct 2011 13:54:37 +0200 Gilles wrote: > Yes, but I find it odd that Fossil expects the current directory to > match the path in the repository: After all, when running commands > that deal with the files in the repository, it shouldn't matter where > we are in the file system when typin

Re: [fossil-users] Fossil is Awesome

2011-10-27 Thread Steve Bennett
On 26/10/2011, at 5:59 PM, Nolan Darilek wrote: > On 10/26/2011 04:50 PM, Stephan Beal wrote: >> >> On Wed, Oct 26, 2011 at 11:37 PM, Nolan Darilek >> wrote: >> like to see: hooks, and the ability to query the internal database and >> output the results into a page. >> >> The JSON API provid

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Gilles
On Thu, 27 Oct 2011 13:30:38 +0200, Dmitry Chestnykh wrote: >On Thu, 27 Oct 2011 13:21:38 +0200 Gilles >wrote: > >> C:\Projects\Project2>fossil diff "Project1/Form1.vb" >> C:\fossil.exe: file Project2/Project1/Form1.vb does not exist in >> checkin: >> >> C:\Projects\Project2>fossil diff "/Projec

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Dmitry Chestnykh
On Thu, 27 Oct 2011 13:21:38 +0200 Gilles wrote: > C:\Projects\Project2>fossil diff "Project1/Form1.vb" > C:\fossil.exe: file Project2/Project1/Form1.vb does not exist in > checkin: > > C:\Projects\Project2>fossil diff "/Project1/Form1.vb" > C:\fossil.exe: file outside of checkout tree: /Project

Re: [fossil-users] How can I sync with a directory on each commit?

2011-10-27 Thread Kevin Greiner
On Wed, Oct 26, 2011 at 3:33 PM, Kevin Ar18 wrote: Basically, I could never get it to work right. So, it seems maybe I just > didn't understand things correctly and it should work? If so, then I should > give it a try again then and see if I can. :) > Note: must leave, so probably won't reply b

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Gilles
On Thu, 27 Oct 2011 13:00:36 +0200, Dmitry Chestnykh wrote: >Fossil expects your current directory to be inside the root of the >working copy, i.e. the working copy directory itself or any other >directory under it in the hierarchy. Thanks for the infos, but the issue I was raising occurs even if

Re: [fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Dmitry Chestnykh
On Thu, 27 Oct 2011 12:24:26 +0200 Gilles wrote: > Is there a way to run a command in any sub-directory below the > repository, so that I don't have to cd to the right sub-directory > before running a command? First of all, there's a distinction between a repository (and SQLite database file) an

Re: [fossil-users] Fossil is Awesome

2011-10-27 Thread Alek Paunov
On 27.10.2011 02:15, Caleb Gray wrote: @ Stephan Beal: I see the appeal in creating a separate HTML application. I will take this approach, and will see how everyone feels about having "installable skins" in Fossil: shipping it with only the "Default" skin. +1: Absolutely - optional AJAX applicat

Re: [fossil-users] How can I sync with a directory on each commit?

2011-10-27 Thread Gilles
On Wed, 26 Oct 2011 15:00:01 -0400, Kevin Ar18 wrote: >Instead of having to manually add or remove files, I would like to be able to >automatically sync all changes. >Basically, the workflow might be like this: >* Have a single directory with all files in version control >* Have a command that au

[fossil-users] Running a command in any sub-dir?

2011-10-27 Thread Gilles
Hello, I noticed that Fossil requires the user to run commands in a directory whose path matches where the file was added in the repository: 0. The repository is C:\Projects\my.repo, and there is single project in C:\Projects\Project1\ 1. In C:\Projects, I run "fossil add ." to add the files loc