hi,

[i guess replying off-list was an accident]

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)

> I just tried to use a different approach: the "--repodir" argument for
> darcs. I typed the following command:
> [EMAIL PROTECTED]:~/other-sources/pootle-trunk$ darcs record
> --repodir=/home/lars/other-sources/examples/cabal
> /home/lars/other-sources/examples/cabal/runTests.sh
> (everything should be one line)
> 
> the output was the following:
> <start>
> Recording changes in "./runTests.sh":
> 
> No changes in selected files or directories!
> </stop>
> 
> This should be ok, right?

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!

^ so just adding --repodir won't allow using absolute pathnames

- VMiklos
--- versioncontrol.py.orig      2007-09-05 17:43:27.000000000 +0200
+++ versioncontrol.py   2007-09-05 17:43:33.000000000 +0200
@@ -412,7 +412,7 @@
             message = ""
         # set change message
         command = ["darcs", "record", "-a", "--skip-long-comment", "-m",
-                message, self.location]
+               message, self.location[len(self.root_dir)+1:]]
         exitcode, output_record, error = pipe(command)
         if exitcode != 0:
             raise IOError("[Darcs] Error running darcs command '%s': %s" \

Attachment: pgpATbbu8soZJ.pgp
Description: PGP signature

-------------------------------------------------------------------------
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

Reply via email to