[darcs-users] Announce: darcspatcher

VMiklos vmiklos at frugalware.org
Tue May 2 19:47:12 UTC 2006


On Fri, Apr 28, 2006 at 01:58:05AM +1000, Nicholas FitzRoy-Dale <wzdd at lardcave.net> wrote:
> Darcs patcher takes a darcs patch file (the largenumber.gz files in the _darcs/patches 
> section of your repo) and applies it to the source tree in your current working 
> directory.
> 
> I wrote it because I wanted to keep a Baz repository in sync with Darcs, with the Darcs 
> repo being the master (because I find darcs much easier to use and less prone to bizarre 
> (hoho) failures). As such, it can notify baz when new files are added, etc, from the 
> patch.
> 
> An information page (with prominent warning):
> 
> http://lardcave.net/~wzdd/hype/doku.php?id=small:darcspatcher
> 
> The source (in the public domain):
> 
> darcs get http://nyloncactus.com/darcs_repos/darcspatcher
> 
> All questions and comments appreciated. My apologies if this is the wrong list for this 
> sort of thing.

$ python darcspatcher.py
20060502194249-6b0d3-8f50ad29deff37548f931efb7ff937ed35ec7c8e.gz
Patching file ./foo.c starting at line 4
Traceback (most recent call last):
  File "darcspatcher.py", line 270, in
?
    main(sys.argv)
  File "darcspatcher.py", line 267, in
main
    patches.apply()
  File "darcspatcher.py", line 207, in
apply
    patcher.done()
  File "darcspatcher.py", line 123, in
done
    os.rename(self.temp_filename, self.filename)
OSError: [Errno 18] Invalid cross-device link

$ zcat 20060502194249-6b0d3-8f50ad29deff37548f931efb7ff937ed35ec7c8e.gz
[masodik
m**20060502194249] {
hunk ./foo.c 4
+       // bar
}

maybe because you tested it with baz, i'm not sure :)

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the darcs-users mailing list