##// END OF EJS Templates
context: make changectx.mutable() benefit from .phase() logic...
Patrick Mezard -
r16359:a1b6a63f stable
parent child Browse files
Show More
@@ -127,7 +127,7 b' class changectx(object):'
127 def phasestr(self):
127 def phasestr(self):
128 return phases.phasenames[self.phase()]
128 return phases.phasenames[self.phase()]
129 def mutable(self):
129 def mutable(self):
130 return self._repo._phaserev[self._rev] > phases.public
130 return self.phase() > phases.public
131 def hidden(self):
131 def hidden(self):
132 return self._rev in self._repo.changelog.hiddenrevs
132 return self._rev in self._repo.changelog.hiddenrevs
133
133
@@ -28,6 +28,14 b' qimport non-existing-file'
28 abort: unable to read file non-existing-file
28 abort: unable to read file non-existing-file
29 [255]
29 [255]
30
30
31 qimport null revision
32
33 $ hg qimport -r null
34 abort: revision -1 is not mutable
35 (see "hg help phases" for details)
36 [255]
37 $ hg qseries
38
31 import email
39 import email
32
40
33 $ hg qimport --push -n email - <<EOF
41 $ hg qimport --push -n email - <<EOF
General Comments 0
You need to be logged in to leave comments. Login now