darcs

Issue 2388 darcs optimise fails if no patches have been recorded

Title darcs optimise fails if no patches have been recorded
Priority Status resolved
Milestone Resolved in 2.10.0 HEAD
Superseder Nosy List jaredj, owst
Assigned To
Topics ProbablyEasy

Created on 2014-05-11.15:03:57 by owst, last changed 2014-06-25.00:14:03 by noreply.

Messages
msg17444 (view) Author: owst Date: 2014-05-11.15:03:55
1. Summarise the issue (what were doing, what went wrong?)

If optimise --patch-index is used before any patches have been recorded,
darcs fails:

darcs: _darcs/inventories: getDirectoryContents: does not exist (No such
file or directory)

2. What behaviour were you expecting instead?

No failure! I was trying to setup my repo to use a patch index, when it
was created.

I imagine it's just a case of creating a present-but-empty patch index,
if the inventory isn't present.
msg17446 (view) Author: owst Date: 2014-05-11.15:38:33
In fact, it is the optimize command itself that fails.
msg17582 (view) Author: noreply Date: 2014-06-25.00:14:02
The following patch sent by Owen Stephens <darcs@owenstephens.co.uk> updated issue issue2388 with
status=resolved;resolvedin=2.10.0 HEAD

* Resolve issue2388: check if inventories dir has been created 
Ignore-this: 9ae9fa01025cb679aa559324853e8d9e
History
Date User Action Args
2014-05-11 15:03:57owstcreate
2014-05-11 15:38:35owstsetmessages: + msg17446
title: darcs optimise --patch-index fails if no patches have been recorded -> darcs optimise fails if no patches have been recorded
2014-06-25 00:14:03noreplysetstatus: unknown -> resolved
messages: + msg17582
resolvedin: 2.10.0 HEAD