summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-05-06 15:00:39 -0400
committerMike Crute <mcrute@gmail.com>2010-05-06 15:00:39 -0400
commitcf21db0d8b5f966f0f1f1508bbb83e28f3134284 (patch)
treeeee74cf3deb2ce87e6d6ac1a3dcf68451ac6d29d
parentf91b5b022c9feb9bd8089414e4ec600fcfbc3316 (diff)
downloadhg_sshsign-cf21db0d8b5f966f0f1f1508bbb83e28f3134284.tar.bz2
hg_sshsign-cf21db0d8b5f966f0f1f1508bbb83e28f3134284.tar.xz
hg_sshsign-cf21db0d8b5f966f0f1f1508bbb83e28f3134284.zip
Storing ssh signatures in a different file>
-rw-r--r--hgsshsign/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/hgsshsign/__init__.py b/hgsshsign/__init__.py
index bd612df..0c62b1a 100644
--- a/hgsshsign/__init__.py
+++ b/hgsshsign/__init__.py
@@ -130,17 +130,17 @@ def sign(ui, repo, *revs, **opts):
130 repo.opener("localsigs", "ab").write(sigmessage) 130 repo.opener("localsigs", "ab").write(sigmessage)
131 return 131 return
132 132
133 msigs = match.exact(repo.root, '', ['.hgsigs']) 133 msigs = match.exact(repo.root, '', ['.hgsshsigs'])
134 s = repo.status(match=msigs, unknown=True, ignored=True)[:6] 134 s = repo.status(match=msigs, unknown=True, ignored=True)[:6]
135 if util.any(s) and not opts["force"]: 135 if util.any(s) and not opts["force"]:
136 raise util.Abort(_("working copy of .hgsigs is changed " 136 raise util.Abort(_("working copy of .hgsshsigs is changed "
137 "(please commit .hgsigs manually " 137 "(please commit .hgsshsigs manually "
138 "or use --force)")) 138 "or use --force)"))
139 139
140 repo.wfile(".hgsigs", "ab").write(sigmessage) 140 repo.wfile(".hgsshsigs", "ab").write(sigmessage)
141 141
142 if '.hgsigs' not in repo.dirstate: 142 if '.hgsshsigs' not in repo.dirstate:
143 repo.add([".hgsigs"]) 143 repo.add([".hgsshsigs"])
144 144
145 if opts["no_commit"]: 145 if opts["no_commit"]:
146 return 146 return