On Mon, Jan 13, 2014 at 10:51:18PM -0700, Christian Pekeler wrote:
>    On Jan 13, 2014, at 15:21, Ron Wilson <[email protected]> wrote:
> 
>  On Mon, Jan 13, 2014 at 3:18 PM, Christian Pekeler 
> <[email protected]>wrote:
> 
>  > I have a Numbers document in Fossil. It used to be just a file, now it's a
>  > folder. How can I commit this change to Fossil?
>  >
>  >
>  > > fossil rm Documents/daycare_stats.numbers
>  > DELETED Documents/daycare_stats.numbers
>  > > fossil add Documents/daycare_stats.numbers/*
>  > > fossil commit -m "upgraded Numbers doc"
>  > ...
>  > not an ordinary file:
>  > /Users/pekeler/Projects/kdw/Documents/daycare_stats.numbers
>  > abort due to prior errors
>  >
> 
>  I think you have to commit the file deletion before doing the add.
> 
>    Thanks. That did the trick.
>    Not ideal, though, because the history of the original file isn't
>    associated with the files in the new folder.
>    Christian

May be you could have rename the file first and commit. Then create the
folder and move the file in it.. So in that case, you would keep the
history of the file.

e.g.:
---------
fossil mv origfile origfile.copy
fossil commit 

...

mkdir origfile
fossil mv origfile.copy origfile/new_origfile_name
mv origfile.copy origfile/new_origfile_name

...  (add you other files)

fossil commit
...

-- 
Martin G.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to