[BUG] fileouting a cs does not number automatically ( Looks like a real bug )

Ned Konz ned at squeakland.org
Sun Jul 18 15:11:45 UTC 2004


On Saturday 17 July 2004 8:28 pm, Doug Way wrote:
> Might be worth fixing for
> 3.7gamma... filing out changesets is a pretty common operation.

Works for me on Linux and Windows.
Doesn't on Mac OS X (with the 3.7b4

You're on OS/X, right?
What VM?

That's because for some reason:

* the defaultChangeSetDirectory is ''
* that exists, apparently (and seems to be the root; at least if you ask it 
for its directories you get the volumes)
* but if you try to make a file in it, it makes it in the current directory


ChangeSet defaultChangeSetDirectory
	MacHFSPlusFileDirectory on ''
ChangeSet defaultChangeSetDirectory exists
	true
ChangeSet defaultChangeSetDirectory fileNames
	#()
ChangeSet defaultChangeSetDirectory directoryNames
	#('OS X' 'OS8' 'OS9' 'USER')
ChangeSet defaultChangeSetDirectory fullNameFor: 'xx'
	'xx'

which when saved gets saved in the FileDirectory default.

ChangeSet defaultChangeSetDirectory: '.'
ChangeSet defaultChangeSetDirectory
	MacHFSPlusFileDirectory on 'USER:Squeak:.'
ChangeSet defaultChangeSetDirectory fileNames 
	#('.DS_Store' 'FasterBFAV-nk.1.cs' ... )
ChangeSet defaultChangeSetDirectory fullNameFor: 'xx'
	'USER:Squeak:.:xx'


Perhaps we should either change this parameter to '.' (would this work on all 
systems?) or add special-case logic for the Mac.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list