On Mon June 11 2007 10:49, Lele Gaifax wrote: > >>>>> Daniel Burrows writes:
> Daniel> I get the same thing if I go in by hand: > >>>> from mercurial import hg, ui uio = ui.ui(debug=True, > >>>> verbose=True) r = hg.repository(ui=ui, path='/tmp/test', > >>>> create=True) > >>>> > >>>> f = file('A', 'w') f.write('Test data.\n') f.close() > >>>> > >>>> r.add('A') r.commit(text='Adding A') > > Daniel> A > 'M\xc5k\xe7QB\xf2W\x04\x85R\xf3\xdd\xdb\x9a;\xc1d/\xc1' > > >>>> r.copy('A', 'B') > > Daniel> B does not exist! > > > Daniel> One can only imagine what the point is of having a > Daniel> "copy" command which fails if the target does not > exist. You are using an internal private API, not the command or public API. This copy() function does not actually copy anything in the filesystem, its role is to notify the Hg repo a copy already occurred, which is what Tailor needs since it rsynced the files. Robin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]