Hi, >[i guess replying off-list was an accident]
partly - I was afraid, that a looooong trial-and-error-dialog would follow :) >On Wed, Sep 05, 2007 at 07:19:21PM +0200, [EMAIL PROTECTED] wrote: >> I am not so sure about this change: IMO it would not work, if the real >> repository is somewhere below /home/ and the pootle home directory is >> in /var/lib/pootle (e.g. the files are just symlinked). Or did I >> understand it wrong? > >you are right, then what about using self.root_dir instead of >os.getcwd()? (see the attached patch) then we would also need to add "--repodir", as darcs cannot know, where to look for the relative path, I guess. >> I just tried to use a different approach: the "--repodir" argument for >> darcs. I typed the following command: >> [...] > >no, that's the problem. if you use an absolute path, then darcs says 'no >changes' even if there are any, so pressing the 'commit' button will >result in nothing > >> Maybe it is possible just to add the "--repodir" argument wherever >> possible and thus continue using absolute filenames? >> Could you please try this? (doing something real with the repodir argument >and absolute paths) > >$ dr rec -a --repodir /home/vmiklos/scm/svn/translate/Pootle >/home/vmiklos/scm/svn/translate/Pootle/po/pootle/hu/jToolkit.po >Recording changes in "./po/pootle/hu/jToolkit.po": > >Ok, if you don't want to record anything, that's fine! ah - it took me some time to recognise, that the last line was part of the darcs output and not yours :) >^ so just adding --repodir won't allow using absolute pathnames you are right, thank you! After some more trying, I think I found the right way: just use --repodir and use only the relative path for the file. So it is basically the same as with git. In your example, this would be: $dr rec -a --repodir /home/vmiklos/scm/svn/translate/Pootle po/pootle/hu/jToolkit.po I will change my patch accordingly, if there are no other points regarding darcs. thanks for your help, Lars ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
