mq: allow to apply patches in subdir of repo again
i broke it in 35caf437a201.
--- a/hgext/mq.py Fri Jul 28 14:31:20 2006 -0700
+++ b/hgext/mq.py Sat Jul 29 11:05:39 2006 -0700
@@ -344,7 +344,11 @@
p1, p2 = repo.dirstate.parents()
repo.dirstate.setparents(p1, merge)
if len(files) > 0:
- commands.addremove_lock(self.ui, repo, files,
+ cwd = repo.getcwd()
+ cfiles = files
+ if cwd:
+ cfiles = [util.pathto(cwd, f) for f in files]
+ commands.addremove_lock(self.ui, repo, cfiles,
opts={}, wlock=wlock)
n = repo.commit(files, message, user, date, force=1, lock=lock,
wlock=wlock)